Jump to content



Welcome to AstaHost - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!

Toggle shoutbox Shoutbox Open the Shoutbox in a popup

@  yordan : (21 April 2014 - 09:11 PM) Hey, Ritesh, Did You Hear Me?
@  yordan : (14 April 2014 - 05:28 PM) By The Way, This Could Be An Interesting Subject For A Topic, What About Posting This Question? Let's See If Other People Have The Same Feeling Concerning Bootlists!
@  yordan : (13 April 2014 - 09:36 AM) Boot Order : Cd, [Usb,] Hard Drive :D
@  yordan : (11 April 2014 - 07:23 PM) I Simply Let The Bios Do That
@  Ritesh : (11 April 2014 - 10:23 AM) Is It Possible To Launch Fedora Live Cd Or Installation Disk From Hard Drive On Windows Platform Using Grub Mbr File.
@  Ritesh : (11 April 2014 - 10:21 AM) No U Are Not.. Btw.. I Have Question For You.
@  yordan : (10 April 2014 - 08:02 AM) You Are Partially Right.
I Was Not.
Nevertheless, I Am Again :)
@  Ritesh : (09 April 2014 - 07:33 PM) :P
@  Ritesh : (09 April 2014 - 07:33 PM) I Think U R Not..
@  yordan : (09 April 2014 - 09:28 AM) I'm The Master Of The Shoutbox!
@  yordan : (05 April 2014 - 10:32 PM) He-He
@  Ritesh : (04 April 2014 - 06:59 PM) Ha Ha Ha ....
@  yordan : (04 April 2014 - 11:15 AM) Welcome Back, Starscream!
@  yordan : (03 April 2014 - 02:31 PM) And I Hope That He Will Come Back Soon :)
@  yordan : (01 April 2014 - 02:53 PM) Nice, Ritesh Came, I'm Not Home Alone Today.
@  Ritesh : (01 April 2014 - 08:51 AM) Oh!!! Poor Dear Yordan..
@  yordan : (31 March 2014 - 10:02 AM) I'm A Poor Lonesome Cow-Boy
@  yordan : (27 March 2014 - 02:22 PM) He Is Unpatient Due To His Patients!
@  Ritesh : (27 March 2014 - 10:46 AM) :(
@  Ritesh : (27 March 2014 - 10:46 AM) He Is Busy With His Patients.

Replying to Kill Spammers Before They Arrive .htaccess method


Post Options

    • Can't make it out? Click here to generate a new image

  or Cancel


Topic Summary

imjjss

Posted 09 January 2011 - 12:17 PM

Recently, I encounted serious spammer attacking. They came like water fall, registering every minute, never stop. I had to install a humanity protection plugin. This plug in efficiently blocked the spammers. But the problem didn't end there-- the spammers kept trying to register. Every registering activity requires the register page from server, at the end, it cost me 3000mb bandwidth per month. A small site with limited resources like mine, this is a lot, and my site really got slower and slower. So, I searched around and found this little code to kill them permenently, before they comsume my bandwidth. Here's the code:
Put this code in your .htaccess file.
Change "your-signup-page.php" to your signup page slug. For example, if your signup page is http://domain.com/register.php, then, change it to "register.php". if your signup page is http://domain.com/register, then, change it to "register"
Change "your-domain" to the domain of your blog.
Optionally, change "die-spammers.com" to whatever page you wish to send the spammers.

What does this code do?
It detect any POST requests (submitting a form) for your signup page, that haven’t been referred by any of your other pages, or have an empty user agent string (identifying the software making the request), and sends them to endless hell.

This code finally solved my problem. From the log, I can see the requirsts from spammers for my register page gets 0 bytes loaded, bandwidth saved. Spammers loss the war.

Review the complete topic (launches new window)