Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

URL Redirect detect

Status
Not open for further replies.

RedInMendocino

Programmer
Jul 27, 2007
3
US
how would I detect redirection of a URL. User is browsing URL in iFrame, how do I determine if url is taking client away from original listed site url.

it is my desire to protect users of posted url list site from redirection by advitizers etc.
 
That would work if I was the Webmaster of that Urls in question.

The iFrame displays a list of URL from outside my domain.

URL's are submitted by users and spammers like to submit seamingly "ok" urls that lead to pages that redirect to black hat pages.

I'd like to be able to flag the sits that redirect by testing the URL in some way.
 
I've attempted to use several of the code examples suggested for slightly simular situations but I'm not able to get a clear indication of a page that gets redirected.

I'm on the border line of violating security boundries.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top