Suljettu

Code Fix - Referrer Check / redirect

I currently have some code in some of my pages. The code checks the referrer URL and if it is not one we approve then it sends the user away.

This is to stop people accessing the page directly and to allow through only those who have found the page through a link on the partner site.

We CANNOT use htaccess file to do this.

The code works on all browsers EXCEPT Explorer (I think v. 6)

The code is below.

Can anyone find a solution so that we can achieve the required result on all browsers? You can see this in action at [url removed, login to view]

The code is:

$Referer = getenv("HTTP_REFERER");

if (!strchr($Referer, "partnersite.com")) {

echo "<script>alert('You are being redirected. You do not have permission to access this page directly.');window.location='[url removed, login to view]';</script>";

exit();

}

For a solution I will pay $30 - no more. If you know of a way to fix this successfully, then this is very easy money.

If you don't know a way then please don't bid because I won't pay you if you cannot fix it!

Taidot: Javascript, PHP

Näytä lisää: redirect referer, referrer checker script, referrer code, referer url php, find code, check url referer redirect, code php referrer, javascript referrer host, referer swf, explorer check javascript redirect, check referers php code, javascript test header referer, redirect check referer, php referer code, javascript history check referer, javascript check redirected url, referrer redirects money, check referrer url javascript, check referrer, php referrer check 2009, code check referrer, check code redirect, free referrer checker avascript, php redirect script referer, media services referer

About the Employer:
( 70 reviews ) london, United Kingdom

Projektin tunnus: #439872