Gossamer Forum
Home : General : Perl Programming :

(anti)bookmarking...etc.

Quote Reply
(anti)bookmarking...etc.
(anti)bookmarking...etc.

Sounds weird? Smile

I run one CGI script (w/ many outputs) that I don't want people to bookmark, add to favorites, or save its output as a local document. My visitors should access this script from the main page, and not from the "bookmarks" or "favorites".

As I understand it is impossible to stop all browsers from caching your online documents Frown ...but there should be way of making pages "bookmarking unfriendly".

If you have any information/links on this topic, please reply!

Thank you Smile
Quote Reply
Re: (anti)bookmarking...etc. In reply to
I believe you can do this with mod_perl or possibly through javascript to manipulate client machines.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
Anthro TECH, L.L.C
anthrotech.com
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.


Quote Reply
Re: (anti)bookmarking...etc. In reply to
It's all in how you structure your forms to interact with your cgi. If you make sure you are passing all of your data correctly and not making hard links like:

<a href="http://www.blah.com/cgi-bin/test.cgi?a=1&b=2">

They will have no choice but to go to the only page that the browser ever sees:

http://www.blah.com/cgi-bin/test.cgi

-- Gordon


------------------
$blah='82:84:70:77';
print chr($_) foreach (split/:/,$blah);

Quote Reply
Re: (anti)bookmarking...etc. In reply to
Eliot: Yes, I heard that Java Script can make your page unbookmarkable, but I don't know Java Script enough to write such code Frown

Gordon: My visitors shouldn't bookmark neither of this:
Code:
/cgi-bin/test.cgi?a=1&b=2
/cgi-bin/test.cgi
... they should only be allowed to bookmark .HTM and .HTML files.
Quote Reply
Re: (anti)bookmarking...etc. In reply to
There is no way to stop someone from bookmarking your site if they want to. They can turn off JS. Just make your .cgi files default to your homepage unless they have the correct data passed through. Then have them pass the data correctly into them and your problem is solved.

-- Gordon

------------------
$blah='82:84:70:77';
print chr($_) foreach (split/:/,$blah);