I'm currently mailing some CPC offers but i got lots of bots clicks. My platform can blacklist IPs but according to some threads here, I see the best method is to redirect them to a static page. Is there any script can redirect affiliate link based on IPs, or we can do it on DNS level? and what kind of page should I redirect those bots clicks to? Thanks very much, noobking
I know Damian has talked on this topic before. I can't recall the answer atm, but I know he has it. :star:
What web server software are you using to handle hosting? If it's apache or nginx, you could handle it with a few rewrite rules and not have to worry about scripts.. If it's IIS, have fun with that.
Apache: Code: RewriteCond %{REMOTE_ADDR} ^12\.3[45]\. [OR] RewriteCond %{REMOTE_ADDR} ^34\.(5[6-9]|6[0-3])\. [OR] RewriteCond %{REMOTE_ADDR} ^56\.2[78]\. RewriteRule .* http://www.google.com/ [R=301,L] nginx: Code: geo $ip_bad { ranges; default 0; 1.2.3.4-1.2.3.255 1; 2.3.4.5-3.4.5.255 1; } if ($ip_bad) { rewrite .* http://google.gom/ redirect; }
Here's an old PHP script I put together that may be useful to you: https://github.com/chaseideas/Bot-Clickers-Redirect-Script It will allow you to filter your visitors based on the User Agent and redirect them if the Agent name matches one of the entries in inc/bots.php