473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Need to remove history of last page

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
5 10764
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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: riotctrl | last post by:
Is there a way to use the history.back to display the actual url of the last page to the page ?
12
by: |-|erc | last post by:
when a user clicks back to get to my site, I want it to run a javascript function. can you detect when the FORWARD button is greyed out? Herc -- I call3d this fugly and I'm proud...
3
by: Rob | last post by:
Each time a webform is posted back (submitted), another URL is added to the browser's history list. My web application allows a back button to return to previously visited pages, but I do not wish...
20
by: Dan | last post by:
Is there a way to obtain the last page visited? I don't want to go to that page, I just want to be able find out what page they came from, the url of that page. Is this possible?
12
by: nephish | last post by:
Hello there, i am getting to need to make my web stuff more OO. i have a project at work that we are porting to the internet, and i started learning php to do so. the project is now mamoth is...
2
by: Noodle | last post by:
Hi All, I know that document.referrer can be used to get the last page the user visited, but how can I get the page visited before that? Can this be done in JS? TIA
1
by: BrainTop | last post by:
This is driving me nuts for last one week. Appreciate any assistance. I have ASP.NET web application with many pages. Some of them post back to itself and then links to another page. Everything...
25
by: crescent_au | last post by:
Hi all, I've written a login/logout code. It does what it's supposed to do but the problem is when I logout and press browser's back button (in Firefox), I get to the last login page. In IE,...
12
by: jim.richardson | last post by:
Hi all, I'd like a page to be excluded from the back button history, that is, when a user hits their browser's back button, it never backs into this particular page. Can anybody please tell...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.