First of all: Thank you!
One more time, very nice share.
So the deal is: BH website which receives junk trafic --> Domain with the script which redirects --> WH website, used as referer --> CPA offer.
Am I right?
I tried it like that and it was ok for me, I just checked the referer with firefox ref control, and the WH website appeared.
Then, I wondererd if it was possible to mix BH website and domain which redirects as one website.
I saw in the code there is a condition. So I just took the index.php file of my website, copied everything and added the code in your first code here:
Code:
} else {
Code from index.php website
}
It actually works if you arrive on direct (no referer) on the website of course, and if you have only one page (as if you click, a referer will appear, so the script will be on) so it's actually useless
I wondered if it would be possible to disable the script for people navigating on the website (so for people having the website itself as referer).
It would be usefull for people who don't want to use an entire domain just for the redirection.
But I'm actually not sure it would be nice ... as in your code there is a double protection (domain which redirects and WH website).
So my conclusion: very nice script, which seems to have a high level of protection, so it's better to use it as you describe and not trying to mix BH website with the redirection.
Edit: I also tested your code with CakeSlice for people who wants to Iframe CPA offer, it seems ok, even if I don't checked the Iframed ref (any way to check the referer in an iframe?)
Edit2: I simply added the index.php in a subfolder of my BH website, as suggested by Etrader, and that's ok it works. The deal can be: BH website with script --> WH website for referer -->CPA offer and the URL has to be like this one:
Code:
http://handler.com/SubFolderWithScript?url=myCPAnetwork.com?oid=12345&pid=6789&sid=yy7456&referer=myfavewpsite.com/post-with-ads