The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > The Lounge > What's on Your Mind?
Google UNIX.COM
Home Forums Register Rules & FAQ Members List Arcade Search Today's Posts Mark Forums Read


What's on Your Mind? Come inside and relax a while. Maybe play a few Video Arcade Games if you have free time.


Other UNIX.COM Threads You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Any advice would help liquidstyleb Linux 2 03-05-2008 03:44 AM
need advice naner9 UNIX for Dummies Questions & Answers 1 11-01-2007 07:05 AM
looking for advice... bravo24601 Shell Programming and Scripting 1 05-03-2007 12:54 AM
Need advice: Awk vs something else? yongho UNIX for Dummies Questions & Answers 1 06-13-2005 06:15 PM
Looking for some advice justawind UNIX Desktop for Dummies Questions & Answers 4 07-18-2002 06:40 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-10-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,375
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Spammers: Advice being sought

The Web-based contact form on my site has been under distributed spamming attacks for nearly a month already. Obviously, a spammer has tried to generate HTTP requests containing ads to male drugs and all sorts of similar stuff directly to the form mail processor script on my site using a robot, as I can see from my logs that dozens of them were being recorded nearly every hour.

Although I have programmed some trickeries with the form processor way back in 2006 that was sufficient to prevent those spam mail from actually being sent to my mailbox at all, the attacks are filling up my log files and I think I should do something to stop that, as they are also wasting my bandwidth and processing power having to serve them.

The spammer has apparently been able to attack hundreds of hosts and launch the attacks through them, as nearly all spam were originated from different IP addresses and thus far I have been able to capture several hundreds IP addresses of those initiating those requests over just a couple of weeks. However, the design of my form allows me to find out the original IP address from which the form used in the attacks was initially captured, which resolves to an IP address from a netblock owner in New Jersey, who captured the form in mid March 2007 which was then used in all attacks thereafter.

As I know you all are seasoned sysadmins, what should I do now? And have you all experienced similar issues, and how did you go about that?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 04-10-2007
zazzybob's Avatar
Registered Geek
 

Join Date: Dec 2003
Location: Melbourne, Australia
Posts: 2,100
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
I ended up doing a very basic "captcha" style implementation on my contact form - just to get the user to type in a word, in a certain case, otherwise the request fails validation - http://www.zazzybob.com/contact.html - this is an *extremely* basic form of validation - but it works - and I no longer get my daily Viagra and Rolex ads ;-)

Something like this may be more robust....

Cheers
ZB
Reply With Quote
  #3 (permalink)  
Old 04-10-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,375
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Hi Zazzybob,

I have been able to block those requests from actually sending email with my present strategy. What I am interested to know, is that, as sysadmins whether you are hunting those frequent abusers down and report to the netblock owner concerned? Or put the question simply, what are your typical resolution for issues like that?
Reply With Quote
  #4 (permalink)  
Old 04-10-2007
sysgate's Avatar
Unix based
 

Join Date: Nov 2006
Location: /root
Posts: 1,069
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
Yes, I'm doing this often. Usually it's coming from one IP, so it's not difficult to trace. Do a whois for the IP, and send full headers + log file to $abuse@ contact.

In order to avoid large log file you may do the following with apache :

Code:
SetEnvIf Request_Method ^your-pattern-here$ nofsckinglog

CustomLog "|xx /wwwlog/your-vhost/%Y-%m-%d/access.log" combined env=!nofsckinglog
ErrorLog "|xx /wwwlog/your-vhost/%Y-%m-%d/errors.log"
Code:
RewriteEngine On
RewriteCond %{REQUEST_METHOD} ^your-pattern-here
RewriteRule ^/ %{DOCUMENT_ROOT}/some-empty-file [F,L]
Reply With Quote
  #5 (permalink)  
Old 04-10-2007
Moderator
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,375
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiReddit! Stumble this Post!Spurl this Post!
It's a shared Web hosting account. I have no access to such Apache directives, but the logs are accumulating and they are increasingly eating my quota (but I can't remove them, either). And the attacks were recorded from hundreds of hosts thus far with nearly no repeat, although I believe the attacks are coordinated by one party from behind, as shown by an identical cryptographic signature for all attacks. Apart from Apache logs, some logs are written by my site scripts that I can provision, but unless the source can be stopped those requests are still dragging down the server and leaving me lots of logs.

As for abuse report, do netblock owners typically entertain them?
Reply With Quote
Google UNIX.COM
Reply



Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 06:47 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger

Search Engine Optimization by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102