freventing bookmarking of specific pages

Is it possible to prevent the bookmarking of specific pages on my site? I would like visitors to only be able to access the pages through my site or perhaps a specific link somewhere.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Couldn't you use some kind of form value on an entry page so that if this page of yours doesn't receive the value it redirects the user to another page.
When you retrieve a webpage from a webserver it is possible to analyze where the link to this page has been coming from. It is stored in a variable called the "REFERRER".

If you want to restrict the access to your script to one (or several) links it would be possible to achieve this but not by pure HTML. You would need a Perl script to do the analyzing part for you.

So I think it would be possible if you

1. generate your page dynamically e.g. by a Perl script
2. check the REFERRER-value of the client
3. deny the access if the referrer isn't a "legal" link

So let's say the only "legal" link is on

and your page is generated by this script:
$legal_link = '';

# check if link is legal
if ($ENV{HTTP_REFERER} eq $legal_link) {

  ... generate your page here ...

} else {

  ... generate "ACCESS DENIED" message here ...


This will also result in an "ACCESS DENIED" if the user has bookmarked your page. It will only show the contents if the surfers come in via your link!

If you think that this could work for you I will be glad to help you further with filling in the missing spaces in this script!


  The simplest way to do this is to have a frameset on the default page, with one frame set to 100%, and calling the content page, and the other frame set to 0%, and calling the blank page.  No matter where the client goes from that default page, your opening URL will be all the client sees in the location bar, and all they can bookmark without hacking the URLs out of the Property dialogs or the frameset.

  This feature is used by several NBC sites, and a few of the cnet sites.

<frameset rows="100%,0%" border=no framespacing = "0" bordercolor="FFFFFF">
    <frame src="content.asp" frameborder="NO" scrolling="auto" marginwidth="0" marginheight="0"  name="content">
    <frame src="blank.asp" frameborder="NO" scrolling="no" marginwidth="0" marginheight="0" name="blank">


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
cscott57Author Commented:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.