5, July 2008

Apache : Get rid of spam bots - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Apache : Get rid of spam bots
« previous next »
Pages: [1] Print

Author Topic: Apache : Get rid of spam bots  (Read 2951 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



« on: Feb 09, 2006, 02:12:26 PM »

After a lot of searching in my logs, I realized that the downtime we had these days was partially due to some spam bots that overloaded the server.

Here is an easy way to get rid of spam bots. Open your .htaccess files and add these lines :

Code:

<IfModule mod_rewrite.c>

  RewriteEngine on
  RewriteBase /
  RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
  RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
  RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
  RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [OR]
  RewriteCond %{HTTP_USER_AGENT} ^Crescent [OR]
  RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [OR]
  RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [OR]
  RewriteCond %{HTTP_USER_AGENT} ^WebEMailExtrac.* [OR]
  RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [OR]
  RewriteCond %{HTTP_USER_AGENT} ^Teleport [OR]
  RewriteCond %{HTTP_USER_AGENT} ^Zeus.*Webster [OR]
  RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [OR]
  RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
  RewriteCond %{HTTP_USER_AGENT} ^LinkWalker [OR]
  RewriteCond %{HTTP_USER_AGENT} ^sitecheck.internetseer.com [OR]
  RewriteCond %{HTTP_USER_AGENT} ^ia_archiver [OR]
  RewriteCond %{HTTP_USER_AGENT} ^DIIbot [OR]
  RewriteCond %{HTTP_USER_AGENT} ^psbot [OR]
  RewriteCond %{HTTP_USER_AGENT} (.*)Indy(.*) [OR]
  RewriteCond %{HTTP_USER_AGENT} ^EmailCollector
  RewriteRule ^.* - [F]

</IfModule>


Enjoy Smiley

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
I love Pokemon
*
Posts: 14
96 credits
Members referred : 0



« Reply #1 on: Feb 09, 2006, 04:20:35 PM »

Cool, but what does this actually does?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



« Reply #2 on: Feb 09, 2006, 04:25:10 PM »

It will deny access to the spam bots.

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 7931
40535 credits
Members referred : 3



« Reply #3 on: Feb 09, 2006, 04:29:38 PM »

A small addition. You can also put the above line to deny access to users that are trying to leach your site with curl:

Code:
RewriteCond %{HTTP_USER_AGENT} ^Curl(.*) [OR]

Trial and Error my two best teachers Cool
Promote your blog for free.... Visit through proxy

Last blog : Keep it Legal - Tims guide to legal notices
aka J Love
Community Supporter ?
Bill Gates is my home boy
*****
Gender: Male
Posts: 884
1636 credits
Members referred : 4



« Reply #4 on: Feb 13, 2006, 01:15:48 AM »

most of these things you mention are only necessary for those running their own web host service with multiple servers in a real datacenter, if you use hosts like Website source or Webco planet then this is automatically configured for you.

Visit through proxy Visit through proxy Visit through proxy

Last blog : phpHaze 1.59.1 in Development
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=1453
Tags : apache mod_rewrite spam modrewrite Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web hosting talk  >  Configuring your server  >  Apache web server
Topic: Apache : Get rid of spam bots
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul 05, 2008, 11:02:08 PM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 35.533
Total Topics: 7.344
Total Members: 3.647
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: pawan

13 Guests, 4 Users online :

15 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.