Display different code for specific referrer

Completed Posted Apr 4, 2013 Paid on delivery
Completed Paid on delivery

I want to include different file/code for specific referrer.

I have a file for example [login to view URL] with domains list, it looks like this:

[login to view URL]

[login to view URL]

...

[login to view URL]

Now I need...

php script that will use $_SERVER['HTTP_REFERER'] to check referrer domain and compare that domain to domain list from sites.txt

and if referrer domain is on that list script include file1.php
if referrer is not on that list or if there is no referrer script include file2.php

PHP

Project ID: #4400618

About the project

4 proposals Remote project Active Apr 4, 2013

Awarded to:

waelfree

Hi, I can do that immediately

$30 USD in 1 day
(189 Reviews)
7.9

4 freelancers are bidding on average $54 for this job

Tulear

Just award me this project and consider it done ! You have a real professional here, ready to make you happy. Thank you.

$90 USD in 1 day
(251 Reviews)
8.8
dewed

Ready to start

$47 USD in 1 day
(23 Reviews)
4.2
webdeveloper1992

I can do it

$50 USD in 1 day
(9 Reviews)
3.5