Richard G
Verified User
[solved] Htaccess ip block not working
I was trying to block a spider from searching a certain customer domain, because it was not listening to customers robots.txt.
Now this is what is happening:
But it's using multiple ip's in this range.
So I tried blocking with 46.229.168 and 46.229.168.0/24 and now 46.229.0.0/20 but the bot still keeps coming.
This is my customers .htaccess file:
I also tried without the "files" directive, but that bot keeps appearing in the logs so it can keep on visiting. How is this possible?
Am I doing something wrong?
I was trying to block a spider from searching a certain customer domain, because it was not listening to customers robots.txt.
Now this is what is happening:
Code:
46.229.168.73 - - [23/Dec/2016:12:11:27 +0100] "GET /forum/viewforum.php?f=116&sid=298276cb5b15e9836b12577db2c9f5f6 HTTP/1.1" 200 9086 "-" "Mozilla/5.0 (compatible; SemrushBot/1.1~bl; +http://www.semrush.com/bot.html)"
So I tried blocking with 46.229.168 and 46.229.168.0/24 and now 46.229.0.0/20 but the bot still keeps coming.
This is my customers .htaccess file:
Code:
<Files *>
order deny,allow
deny from 51.254.0.0/15
deny from 62.0.0.0/16
deny from 149.202.0.0/16
deny from 136.243.0.0/16
deny from 46.246.0.0/17
deny from 23.20.0.0/14
deny from 5.9.0.0/16
deny from 149.202.157.216
deny from 149.202.157.218
deny from 46.229.160.0/20
allow from all
</Files>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?user-domain.nl$
RewriteRule ^(/)?$ forum [L]
I also tried without the "files" directive, but that bot keeps appearing in the logs so it can keep on visiting. How is this possible?
Am I doing something wrong?
Last edited: