Click to See Complete Forum and Search --> : How to do this?


DVD-Man
09-12-2002, 07:22 AM
Is there an easy way to do this with a CGI script or somethng?

Have like a really long URL so the user can't really understand it in the address bar like a lot of other sites do for example:

http://www.mysite.com/1256wyijhdlp$jjhjj%blahblahblahblahblahblahblah

& like whenever the user goes to this URL the script creates a random location for the page.

If your having trouble understanding me...well, ya see, I have a permenent location for a page...I don't really want users "directly" accessing it so instead of leaving it at it's permanet location I want the script to generate the random location of it.

As for the URL thing.....would like something like the above so the user can't find the direct location of the script easy either.

e_dawg
09-12-2002, 11:09 AM
In the script check the HTTP-Referrer, if it is not within your domain, give them a nice, happy redirect to a page you'd like them to link to.

You can put junk on the end, but that's silly and doesn't really help you out. You could put a session on there, but the referrer is far simpler to check than passing a session out on the URL and then checking that it is valid on every page hit, unless you're already doing it.