By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,587 Members | 1,168 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,587 IT Pros & Developers. It's quick & easy.

Need to remove history of last page

P: n/a
I'm working on a web site for a domestic violence group and these
groups always have an "escape" button, which is simply a link to
another site. Whether I open this link in the same window, a new
window or target="top", the back button will always return me to the
domestic violence site, which is what we wat to avoid.

Is this possible via PHP? Thank you.
Jul 17 '05 #1
Share this Question
Share on Google+
5 Replies


P: n/a
One quick glance of an experienced eye allowed to understand the blurred
and almost unreadable Jerry McEwen's handwriting:
I'm working on a web site for a domestic violence group and these
groups always have an "escape" button, which is simply a link to
another site. Whether I open this link in the same window, a new
window or target="top", the back button will always return me to the
domestic violence site, which is what we wat to avoid.

Is this possible via PHP? Thank you.


Not precisely PHP, but you can simply put a redirection heeader on a
temporary page and link to it. The temporary page will simply redirect
at once to some other page, and AFAIK this should 'break' the back
button.
Not perfectly sure of that, though. Just brainstorming.

Cheers
Mike
Jul 17 '05 #2

P: n/a
history could only be altered by client side scripting, i.e.
javascript.
but - as far as i know - javascript can only read history, not alter or
delete, but it may be worthwhile to post your question in some
javascript group.

another thought: frames break the back button quite often, which is a
nuisance with many sites. maybe does some good here.

micha

Jul 17 '05 #3

P: n/a
On Mon, 23 May 2005 11:25:59 -0500, Jerry McEwen wrote:
I'm working on a web site for a domestic violence group and these groups
always have an "escape" button, which is simply a link to another site.
Whether I open this link in the same window, a new window or target="top",
the back button will always return me to the domestic violence site, which
is what we wat to avoid.

Is this possible via PHP? Thank you.


Just talking off the top of my head here.

The back will return to the cached page, unless you put a short expire
date onto it. But then you want the page to not be available when the
browser attempts to refresh.

As I said this is off the top of my head, so be prepared to experiment..

Lets say that you have a main access point,

www.TotallyInnocentWebsite.com

Which shows typical family content (smelly babies and women mud
wrestling). Then some access point for the main part of the Domestic
violence page which would load into a frame on the page, set up so that
the surrounding frames are dominant (so that if they are taken by surprise
then chances are the page still looks innocent).

Your php gives that frames content a limited life and creates it's
link name on-the-fly.

Now when they press 'back' either a file that doesn't exist is requested
(which seems to be pretty normal for web anyway) or you have a minor
temporary page, looks like an advert for Daz or maybe just a page with the
same background as the surrounding frames.

There you are. And as you'll be doing all the coding I'll let you share
the applause.

Jul 17 '05 #4

P: n/a
Jerry McEwen wrote:
I'm working on a web site for a domestic violence group and these
groups always have an "escape" button, which is simply a link to
another site. Whether I open this link in the same window, a new
window or target="top", the back button will always return me to the
domestic violence site, which is what we wat to avoid.
Which browser it is? Is your browser hijacked?
Is this possible via PHP?


No.

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #5

P: n/a
chotiwallah wrote:
history could only be altered by client side scripting, i.e.
javascript.
but - as far as i know - javascript can only read history, not alter or
delete, but it may be worthwhile to post your question in some
javascript group.


location.replace

--
<?php echo 'Just another PHP saint'; ?>
Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.