Project Detail

Code Fix - Referrer Check / redirect  

Code Fix - Referrer Check / redirect is project number 439872
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status: Cancelled

Selected Providers: -

Budget: $30-250

Created: 05/24/2009 at 7:41 EDT

Bid Count: 25

Average Bid:
N/A

05/27/2009 at 7:41 EDT

Project Creator: stretchcomms
Employer Rating: 9.9804/109.9804/109.9804/109.9804/109.9804/109.9804/109.9804/109.9804/109.9804/109.9804/10 (51 reviews)

Bid On This Project
 

Description

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 https://www.offersinthetimes.com/cultureplus_ticket_booking/ticket_booking_cultureplus.php

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='https://www.oursite.com/redirect';</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!


Additional information submitted:

05/24/2009 at 7:59 EDT:
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.

05/24/2009 at 8:06 EDT:
To test the problem, go to
http://www.media-promotions.com/correctroute.html
click on link
it should allow you in to
http://www.media-promotions.com/test.php

But if you access http://www.media-promotions.com/test.php 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.


Messages Posted:2 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

Bids are hidden by the project creator. Log in as the project creator or as one of the bidders to view bids. You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


    Bid on this Project