Discussion Locked
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.
Trending Web Development posts
Sort by Trending
Discussion Locked
What Makes a Business Website Effective in 2026
2 helpful
10 replies
1 helpful
3 replies
Question
Windows and macOS computers becoming slow or unstable after updates - what should I check first
0 helpful
1 reply
Question Unanswered
Best Way to Make Long WordPress Location Guides Mobile Friendly
0 helpful
0 replies
Discussion
Optimizing WordPress widgets and DOM size
0 helpful
3 replies