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, "")) {

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>";



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!

The problem is that in most browsers, the page will let through all those users who come from the correct location.

But with some browsers, it sends them to the redirect page even when they come from the correct location. Some browsers are not reading the code correctly and are sending every user away.

To test the problem, go to
click on link
it should allow you in to

But if you access directly and it should send you to google because you came from the wrong place.

This works for most browsers but some will not let you through from the correct link path.

Taidot: Javascript, PHP

Näytä lisää: check page referrer url php, redirect referer, referrer checker script, referrer code, you fix it, we will fix it, the fix it, referer url php, my fix it, my fix com, i will fix it, fix it site, fix it at, find code, code for money, 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

Tietoa työnantajasta:
( 70 arvostelua ) london, United Kingdom

Projektin tunnus: #439872