Re: Stoping a page from being a "Favorites"
From: JCO (J.Oliviero_at_verizon.net)
Date: 02/10/04
- Next message: Dan: "Re. Linked or embedded style*** wrecks display in non-IE browser - apology"
- Previous message: Thomas A. Rowe: "Re: Spawn not spawning image"
- In reply to: chris leeds: "Re: Stoping a page from being a "Favorites""
- Next in thread: Thomas A. Rowe: "Re: Stoping a page from being a "Favorites""
- Reply: Thomas A. Rowe: "Re: Stoping a page from being a "Favorites""
- Reply: chris leeds: "Re: Stoping a page from being a "Favorites""
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 10 Feb 2004 23:59:20 GMT
I have no links to this page. I have a link to a logon page that runs a
script. The script takes you to the page. My concern is to stop someone
from making the page a favorite...hence avoiding the logon page (and yes I
realize if the user has it in his favorite, then he must be a member and is
authorized... I prefer him to logon each time).
With the referrer script in place, a person that loads it from a favorite
get redirected to the homepage where he has to go through the proper logon.
The problem is that theirs no way to get to the page at all. Even after the
logon prompt validates the password, the user is redirected to the index in
an endless loop.
I hope this makes sense.
"chris leeds" <chris@nedp.net> wrote in message
news:%235ZpdgC8DHA.2832@tk2msftngp13.phx.gbl...
> how many pages do you have a link to this one page on? I think it'd be
> easier to do it this way:
> if the referrer is one of those pages you've got the link on then nothing
> else redirect them back to the home page.
> what is it you're trying to do anyway?
>
> " JCO" <J.Oliviero@verizon.net> wrote in message
> news:b0cWb.4070$1B6.3002@nwrddc03.gnilink.net...
> > Okay, sorry so long to get back to you.
> > I thought this script was working but it is not... as I intended.
> > It does stop someone from grabbing it from their favorites and I can
> > redirect them to the home page, however, If I have a direct link to the
> > page.. I want them to make it to the page. This script stops anyone
from
> > ever making it to the page.
> >
> > I'm assuming that theirs more to it that I simply don't know. Maybe you
> can
> > explain further. I have a password protected page. I want to get to
the
> > page if the password is correct. Now I want them to not be able to save
> the
> > page. I still want the page to be available via the correct method.
> >
> > How do I make corrections. Does this make sense.
> >
> >
> > "chris leeds" <chris@nedp.net> wrote in message
> > news:e%23EFQMQ7DHA.2676@TK2MSFTNGP10.phx.gbl...
> > > if the page is something that you want to hit from only one page then
it
> > > might be easier to just test to see if the referrer is indeed that
page
> > and
> > > if not send them to whatever page you want them on.
> > > IMHO if it's really important you would want to use some server side
> > script
> > > to make sure that the browser or pop-up blocker doesn't disobey. ;-)
> > > HTH
> > > " JCO" <J.Oliviero@verizon.net> wrote in message
> > > news:iJUUb.15610$9a7.14886@nwrddc02.gnilink.net...
> > > > Awesome!
> > > > This script was just what I needed.
> > > > Thanks a bunch, it works great (with a few modifications).
> > > >
> > > > "Jon Spivey" <jonspivey@NOCRAPTHANKStiscali.co.uk> wrote in message
> > > > news:%23kEiWpP7DHA.2576@TK2MSFTNGP11.phx.gbl...
> > > > > If they've clicked a link from favourites referer would be empty
so
> we
> > > > could
> > > > > check for that - either server side as you said or client side
> > > > > <script type="text/javascript">
> > > > > if(!document.referer)location.replace('default.htm')
> > > > > </script>
> > > > >
> > > > > Jon
> > > > > Microsoft MVP - FP
> > > > >
> > > > > "chris leeds" <chris@nedp.net> wrote in message
> > > > > news:%23toMVnP7DHA.2628@TK2MSFTNGP10.phx.gbl...
> > > > > > I don't think you can prevent it from being added but you can
use
> a
> > > > server
> > > > > > side scripting (asp asp.net php) to test for referrer (the last
> page
> > > or
> > > > > site
> > > > > > they were on) and if it's not the one you want them coming in
from
> > > > > redirect
> > > > > > them back to the home page.
> > > > > > HTH
> > > > > >
> > > > > > " JCO" <J.Oliviero@verizon.net> wrote in message
> > > > > > news:EvTUb.18315$EH5.11084@nwrddc01.gnilink.net...
> > > > > > > How do you make a page that can not be save in someone's
> > favorites.
> > > I
> > > > > > have
> > > > > > > a page that if they bookmark it or save the page, when they
come
> > > back
> > > > to
> > > > > > > that link, I would rather it go to the home page.
> > > > > > >
> > > > > > > Is this possible?
> > > > > > >
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Dan: "Re. Linked or embedded style*** wrecks display in non-IE browser - apology"
- Previous message: Thomas A. Rowe: "Re: Spawn not spawning image"
- In reply to: chris leeds: "Re: Stoping a page from being a "Favorites""
- Next in thread: Thomas A. Rowe: "Re: Stoping a page from being a "Favorites""
- Reply: Thomas A. Rowe: "Re: Stoping a page from being a "Favorites""
- Reply: chris leeds: "Re: Stoping a page from being a "Favorites""
- Messages sorted by: [ date ] [ thread ]