Discussion Locked

Do not allow bookmarks

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Is there code for not allowing vistors to bookmark your page? Also, I don't want visitors to view the page unless they were directed there from the page before.

1 reply

by jay eckles

Can you prevent users from bookmarking your page? No. If the page is protected by some form of authentication, you can prevent them from accessing the page without going through the login process.

Can you display the page only if they were directed there from the page before? Yes. If the page is served dynamically, the server-side program can check the HTTP_REFERER to see if the user is coming from what you determine as "the page before".

As with all things, there are exceptions that prove the rule, and I'll let others get into the ugly details if they want.

Jay

This discussion is closed to new replies.