So basically some guy ripped my site and he happened to copy my code which I was using to track the hits: <script src="http://site.com/landing.php?lpip=8297" type="text/javascript"></script> I'm currently using that code on another page to track visitors, but I would like to fuck this guy and have his site redirect. How is it possible for me to do this? $15-20 to the first person who can tell me how this can be done and code it for me. For example, if hissite.com has the code, I want this script to somehow detect his url, and run a script from site.com/script.php, but if its any other site but hissite.com, then it will run like normal. Send me a PM with your AIM/MSN.
Edit: we can also make it track the "lpip=8297" so if it senses that then it will pull the outside script.
<?php if(strpos($_SERVER['HTTP_REFERER'],'his-domain.com') !== false) { include('script.php'); } else { //the normal behaviour } ?> PHP:
javascript you could include to redirect switch(window.location.hostname ){ // check domain name case "hisdomain.com":window.location="http://someplace.com"; //redirect to wherever break; } Code (markup):
Just because you can view the code does not make it "open Source". The author of the code retains all rights unless explicitly defined in a distributed license. Furthermore if his page contains a copyright, the act of copying the code is also copyright infringement and a violation of the Digital Millennium Copyright ACT.