prevent bookmarking


D

darren

Hi,

is it posible with Javascript or PHP to prevent a page from being
bookmarked?

Cheers
Darren
 
Ad

Advertisements

D

Dylan Parry

Pondering the eternal question of "Hobnobs or Rich Tea?", darren finally
proclaimed:
is it posible with Javascript or PHP to prevent a page from being
bookmarked?

No.
 
D

Dylan Parry

Pondering the eternal question of "Hobnobs or Rich Tea?", Dylan Parry
finally proclaimed:

Thinking about it, actually yes, but you'd have to dynamically generate
every page from a POST request, which is something that you don't want
to even consider.
 
D

dorayme

Neredbojias said:
With neither quill nor qualm, darren quothed:


Use frames.

You mean make up a frameset that gets bookmarked that
frustratingly has nothing on it or worse (like "You cannot
bookmark the page you wanted to conveniently return to one day"?)

I beg the OP not to divulge why he wants to do this. I like
thinking up possible reasons and if he spills the beans I might
have to get a life.
 
S

Steve Pugh

darren said:
is it posible with Javascript or PHP to prevent a page from being
bookmarked?

Sadly, yes, sort of.

Use PHP and use sessions. Then make sure that any request for a page
must have an active session id or it returns an error. The user can
bookmark the page but the bookmarks will then only work for a short
time (until the session expires). This also has the added benefit of
making the site impossible to index by search engines.

Glasgow City Council had something similar going on a few years ago,
but they added frames and a horrible DHTML menu to the mix as well.
Nice.

Steve
 
Ad

Advertisements

J

Julien CROUZET

Neredbojias a exprimé avec précision :
With neither quill nor qualm, darren quothed:


Use frames.

Bookmarking problems is one of the two thousands and more reasons to
not use frames.

Frames are hugly monster from the past that should use with lot of care
(ie: DO NOT USE FRAMES)
 
N

Neredbojias

With neither quill nor qualm, dorayme quothed:
You mean make up a frameset that gets bookmarked that
frustratingly has nothing on it or worse (like "You cannot
bookmark the page you wanted to conveniently return to one day"?)

Yeah, like a link on the 1st page going to a 2nd which shows the same
url.
I beg the OP not to divulge why he wants to do this. I like
thinking up possible reasons and if he spills the beans I might
have to get a life.

I suspect the OP does not have a clear idea himself.
 
Ad

Advertisements

N

Neredbojias

With neither quill nor qualm, Julien CROUZET quothed:
Neredbojias a exprimé avec précision :

Bookmarking problems is one of the two thousands and more reasons to
not use frames.

That was my point.
Frames are hugly monster from the past that should use with lot of care
(ie: DO NOT USE FRAMES)

It depends. Suppose I want a "site" with a single url? Everybody
automatically assumes that this is www anathema or something but it can
be virtually the same thing as dynamic pages with includes, javascript
and creative css, etc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top