1
boss_hog
block an IP range?
  • 2006/2/7 16:06

  • boss_hog

  • Just popping in

  • Posts: 17

  • Since: 2005/6/11


Hey yall,
the past of couple days my site has been getting "crawled" heavily by the omniexplorer_bot.
I have the Protector Module installed, but this particular bot isn't triggering the "bad bot count" setting of 30.

What I would like to do is block the entire range that omni-explorer comes from. So my question is, what is the proper way to put an entire IP range into the Banned IP's of the Protector Module?

Would it be abc.abc.abc.abc-abc or abc.abc.abc.abc/nn?
Or do I have to start typing each address in one at a time?
Thanks for any input.
Joe

2
stuie200
Re: block an IP range?
  • 2006/2/7 16:20

  • stuie200

  • Friend of XOOPS

  • Posts: 161

  • Since: 2004/1/4 2


You can block by the User-Agent string. Add this to your htaccess file if you have access to it.

-----------------------------------------------------
SetEnvIfNoCase User-Agent "^OmniExplorer_Bot" bad_bot

<Limit GET POST>
Order Allow,Deny
Allow from all
Deny from env=bad_bot
</Limit>
-----------------------------------------------------


or you could also try the following again in your htaccess file


-----------------------------------------------------
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^OmniExplorer [OR]
RewriteRule ^.* - [F]
-----------------------------------------------------
"I'm as confused as a baby in a topless bar."

3
boss_hog
Re: block an IP range?
  • 2006/2/7 16:41

  • boss_hog

  • Just popping in

  • Posts: 17

  • Since: 2005/6/11


Hey stuie200,
great suggestion. One small issue, my server uses a very customized Red Hat based O/S that does not use .htaccess. It uses many other checks and balances.

It would be possible to enable .htaccess, but it would break the update chain. This is why I would like to use the Protector Module.

I am going to re-investigate the option of adding the .htaccess, it may be worth breaking the chain if there is an easy work around to continued updating.
Thanks
Joe

Login

Who's Online

153 user(s) are online (95 user(s) are browsing Support Forums)


Members: 0


Guests: 153


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits