PDA

View Full Version : No bookmarking


fredbear
05-02-2001, 08:29 PM
I have a discussion page on my site that I do not want people to bookmark, and I do not want to password protect it...I want people to access it through my index page.

This does noy work:

.
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.htm$ - [G]

My discussion page is created with Frontpage 2000.

Please help me

www.fredbear.com

Greg

Aquaplex
05-07-2001, 07:17 PM
an easy simply way to do it with out using alot of code, is to place frames on your site. most people now have browsers that support frames so there isnt a need to worry about that.

what you would do is:

make an a top frame with a size of "0"
as show below

<frameset cols="0,*" border="0">
<frame name="top" NORESIZE>
<frame name="bottom" src="index2.html" NORESIZE>
</frameset>

this would go in your main index.html file.
index2.html would be your current index.html file you use. so you would just rename your current one to index2.html instead of index.html

then when linking to your discussion page from your index2.html you would add a target
in the link

so you link would look something like this

<a href="http://www.yourname.com/discussion.html" target="bottom">Discussion Page</a>

this will open the discussion page i the frame we named "bottom" in the new "index.html" you created

you can call it what ever you like as long as the target points to the name you called it in the index.html

This wont stop people for right clicking on you site and bookmarking that frame. What you would have to do there is place a script to stop people from right clicking the page.

Hope you can understand this and that it helps

Laters

Dean