5, July 2009

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 3480 times)
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8565
44417 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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
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: 8565
44417 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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8565
44417 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
Join us @ facebook or twitter

Last blog : Butterfly Marketing 2.0
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.


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....

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, 2009, 04:50:57 am





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: 40.906
Total Topics: 8.089
Total Members: 5.828
Tutorials : 58
Resources : 929
Designs : 312
Latest Member: zizther

15 Guests, 3 Users online :

9 users online today:



Readers

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