Find Jobs
Hire Freelancers

Code Fix - Referrer Check / redirect

$30-250 USD

Closed
Posted almost 15 years ago

$30-250 USD

Paid on delivery
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 [login to view URL] 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='[login to view URL]';</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!
Project ID: 439872

About the project

24 proposals
Remote project
Active 15 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs

About the client

Flag of UNITED KINGDOM
london, United Kingdom
5.0
118
Payment method verified
Member since Oct 29, 2006

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.