So I've got this cocksucker (actually I think it's a bot from Japan) hitting my server multiple times a day. Have no idea why, but I want to redirect his IP to makemoniesonline. I modified my htaccess and tested it with my own IP and it seemed to work. But when I put in the actual IP in question, I still see his shit in my prosper logs hitting my pages.
Couple questions:
1. Is this code correct?
2. Is there a better method (i.e. more effeective than using htaccess)?
I don't really want to put php redirects everywhere and want to control it at the domain level.
Any help would be appreciated! Cheers
Code:
RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_ADDR} ^150\.70\.11\.112
RewriteRule .* http://www.makemoniesonline.com [R=302,L]
Couple questions:
1. Is this code correct?
2. Is there a better method (i.e. more effeective than using htaccess)?
I don't really want to put php redirects everywhere and want to control it at the domain level.
Any help would be appreciated! Cheers