Forum Moderators: open
This morning 64.62.175.137 sucked me for in excess of 570 MB of bandwidth. The IP is Hurricane Electric from California however whether it is them directly I have no idea.
I have written to them requesting if they can supply me with an explanation however has anyone else seen such activity?
Thanks.
I grepped my files and found these IP addresses:
64.71.131.107
64.71.131.108
64.71.131.109
64.71.131.110
64.71.131.111
64.71.131.112
64.71.131.114
64.71.131.115
64.71.131.120
64.71.131.121
The last two IP numbers were the the ones with a straw into two of my sites. The other accessed now and then. I didn't see those accesses until May 16.
They were present in April in the 64.62.175. range. Usually hovering around 133-137
65.19.169.2*
64.71.131.1*
64.62.175.****
We also blocked all reuqest where OmniExplorer is used as an agent.
Last week they hit us for 13 gigs in 3 days. This bot is really bad!
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot1 [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot2 [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot3 [OR]
RewriteRule ^.* - [F]
As many as you desire.
There are three options for the line preferences.
"^" Begins with (Does not require the full name and good
for catching may which have the same beginning.)
"$" ends with
"contains" does NOT require any leading character and the phrase may be any place in the UA.
Some examples:
[webmasterworld.com...]
SetEnvIf User-Agent ^Java keep_out
SetEnvIf User-Agent ^Web keep_out
SetEnvIf User-Agent Library$ keep_out
"SetEnvIf User-Agent Library keep_out"
UA contains the word Library.
The use of Mod_Rewrite for me didn't begin until I began reading this forum.
Previously I only used SetEnvIf and deny from.
Today I use a mixture of both, however remain with most UA denies for SetEnvIf.
One noticeable difference between the two options is that SetEnvIf and deny from do not allowed the denied IP or UA to view robots.txt.
If there's one thing that many of the regulars have learned in this forum, it's that there are multiple methods to implement these procedures.
Don
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteRule ^.* - [F]
Any other ideas how to block this bot.
Thanks
When i use this script in the .htaccess I myself can not see the website. May be becoz IE also has explorer into the UserAgent.
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteRule ^.* - [F]Any other ideas how to block this bot.
Jaunty,
IF the above rewrite is the only rewrite that you have in your htaccess?
Than you would be required to remove the trailing "[OR]".
Use of this trailing OR would likely provide you and any other visitor with a 500 Server Error because your website was not functioning, which is not the same as yourself being denied access.
Most web hosts these days are using CPanel, which offers an option for directly adding IP ranges.
Under Advanced Tools and IP Deny Manager (Just insert the range [and don't forget the ending "." if only using the first three classes.])
This page might offer a more extensive explantion of SetEnvIf and deny from:
[webhelpinghand.com...]
This forum link offers some examples of those methods applied:
[webmasterworld.com...]
Many examples
[webmasterworld.com...]
Don
BTW, even the lines that soquinn provided in message #11 of this thread would NOT function?
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot1 [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot2 [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot3 [OR]
RewriteRule ^.* - [F]
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot1 [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot2 [OR]
RewriteCond %{HTTP_USER_AGENT} ^anotherbadbot3
RewriteRule ^.* - [F]
Options -Indexes
<Limit GET>
</Limit GET>
To provide some examples of what I've inserterted?
Options -Indexes (host default)
<Limit GET> (host default)
SetEnvIf User-Agent Become keep_out
SetEnvIf Referer ^file keep_out
SetEnvIfNoCase Referer yellowbrick keep_out
order allow,deny
deny from 193.
deny from 194.
allow from all
deny from env=keep_out
</Limit> (host default)
RewriteRule ^robots\.txt$ - [L]
RewriteRule .*$ - [F]
RewriteCond %{HTTP_REFERER} ^www.addresses.com.* [OR]
RewriteCond %{HTTP_REFERER} ^www.alexa.com.* [OR]
RewriteCond %{HTTP_REFERER} ^XXXX:.*
RewriteRule .*$ - [F]
RewriteCond %{REMOTE_ADDR} ^12\.175\.0\.(3[2-9]¦4[0-7])$ [OR]
RewriteCond %{REMOTE_ADDR} ^83\.(1[1-9][0-9]¦2[0-5][0-9])\.
RewriteRule .*$ - [F]
end of quote
Please not that the "(host default)" above are NOT part of the functioning htaccess, rather notations.
Also in the lines above where I use "keep_out", you may use any term you desire, JUST as long as you use the same term at the end of the UA line and at the end of the group section. (after; deny from env=)
There are others who participate in this forum who are much more knowledgeable about htaccess, Apache and Regex than myself. The others are also more adapt than myself in providing answers.
Jdmorgans Apache forum is a good source (even though it contains many things you may not be interested in or may never use:
[webmasterworld.com...]
yes your suggestion worked... atlest i can see my site, lets see if Omni can come again.
Thank you very much for the help.
For others with no knowledge about all this.
Just make this your first three lines of the .htaccess file
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer
RewriteRule ^.* - [F]
thats it.
Thanks
For others with no knowledge about all this.
I would suggest taking the time and going through the very extensive "Close To Perfect Htaccess" to help you understand how these procedures are implemented:
[webmasterworld.com...]
Don
AddType application/x-httpd-php .htm .html
Options -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^mymainsite\.com
RewriteCond %{HTTP_HOST} ^anothersite\.com
RewriteCond %{HTTP_HOST} ^www\.anothersite\.com
RewriteRule ^(.*) [mymainsite.com...] [L,R=301]
RewriteCond %{HTTP_USER_AGENT} ^Missigua [OR]
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteRule ^.* - [F]
I'll try removing the [OR] from the second last line... keep geting 403 forbidden using MS explorer
I'll try removing the [OR] from the second last line... keep geting 403 forbidden using MS explorer
soquinn,
Nothing you have in the lines you provided in msg #26 would deny MS Explorer.
The extra [OR] might generate a 500 error and make your site unavailable to ALL visitors (yourself included).
Sticky mail me your entire htaccess and I'll take a look.
Don
(I have a "form" where the user needs to push a button to get a verification email. Seems like I have to add a CAPTCHA thingy there.)