A web-site(wwww.fake-web-site.com) redirects its links to my web-site(www.real-web-site.com). Only the first page is different.
I wrote a code to redirect all people which come from the fake site to google.com.
if (strpos($_SERVER['HTTP_REFERER'],'fake-web-site.com') !== false)
header('Location: http://www.google.com/search?q=real-web-site.com');
It works on Chrome browser, if someone opens the fake web-site and clicks on those links which are linked to my web-site, it will be redirected to google.com. After that he can open my site from google.com.
In Firefox, if someone opens the fake web-site and clicks on those links which are linked to my web-site, it will be redirected to google.com after that, if he clicks on real-web-site.com in google.com, he redirects again to the google.com!
I think it's related to Firefox cache mechanism. Can someone give a suggestion?