Need to remove history of last page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jerry McEwen

    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.
  • Micha³ Wo¼niak

    #2
    Re: Need to remove history of last page

    One quick glance of an experienced eye allowed to understand the blurred
    and almost unreadable Jerry McEwen's handwriting:
    [color=blue]
    > 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.[/color]

    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

    Comment

    • chotiwallah

      #3
      Re: Need to remove history of last page

      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

      Comment

      • BearItAll

        #4
        Re: Need to remove history of last page

        On Mon, 23 May 2005 11:25:59 -0500, Jerry McEwen wrote:
        [color=blue]
        > 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.[/color]

        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,



        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.

        Comment

        • R. Rajesh Jeba Anbiah

          #5
          Re: Need to remove history of last page

          Jerry McEwen wrote:[color=blue]
          > 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.[/color]

          Which browser it is? Is your browser hijacked?
          [color=blue]
          > Is this possible via PHP?[/color]

          No.

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

          Comment

          • R. Rajesh Jeba Anbiah

            #6
            [OT] Re: Need to remove history of last page

            chotiwallah wrote:[color=blue]
            > 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.[/color]

            location.replac e

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

            Comment

            Working...