Discussion Locked

Do not allow bookmarks

0 helpful
2 replies
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.

2 replies

by hewsan

Don't think code exists to prevent bookmarking....I've never heard of anything. Simplest solution is to use frames. But use scripting and databases if you want to ensure information on pages can't be accessed.

by name removed by request

Frames are just HTML pages put together. They can be bookmarked on an individual basis and the result is that what you propose is probably the worst of all solutions as the visitor will be directed to a page displayed totally out of its context.

Dynamic scripting is the key, almost all languages from Perl to PHP allows to have a better control on how each page should behave within the environment of your website.

A quick solution: each page can easily check the value of a variable only set by the main page. If this variable is not found or not set, the page redirects automatically to the main page thanks to HTTP headers or META refresh. This is one solution, there's probably many other.

This discussion is closed to new replies.