View Single Post
Old 10-07-2003, 02:06 PM  
lil2rich4u2
ICQ: 175171926
 
Join Date: Oct 2002
Location: New York, NY
Posts: 11,046
any php guys around? how can i do this?

this is obviously not the code, but i dont know how else to explain it to you ...


if ($referrer != *.domain.com) {
redirect to error page
halt
}

if ($referrer = *.domain.com) {
redirect to correct page
halt
}

basically i want to send the surfer through a script that will check referrer, and if he did not come from a specific page i want him sent to an error page.

if he did come from specific page, i want him sent to a different page.

also it must strip the referrer and only look at the domain, and not the trailing sub domains.


if this is complicated, shoot me a quote to [email protected]

thanks.
__________________
HEY!!

Unbeatable hosting! Customer service is top notch!

--> ISPrime <-- Do a search on any board, their reputation is rock solid .. for years!!
lil2rich4u2 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote