LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-17-2010, 11:50 PM   #1
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Rep: Reputation: 16
attack to a page


dear all,

We have a guest book page that being hit by spam bot.
Currently we've dispose the page, but the spam bot was keep hitting that page, that cost us a lot of Apache thread and processes. Though it's only showing Apache's default forbidden page, but still it takes/needs Apache threads.

The question is: is there anything I can do to block request to that specific page so it won't take any Apache's thread? Because it hits us ten of thousands time each day.

As a note, they are using thousands of IPs. I don't even know whether they have static IP or not because it keeps on changing. So I can't just block the IP using firewall.

Any help appreciated.

Regards,

yoachan
 
Old 07-18-2010, 12:50 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

I think the best you can do, if you can't blacklist the spambot, is probably probably just to serve a null, zero-byte web page.
 
Old 07-18-2010, 06:11 AM   #3
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Originally Posted by yoachan View Post
We have a guest book page that being hit by spam bot...
As a note, they are using thousands of IPs. I don't even know whether they have static IP or not because it keeps on changing. So I can't just block the IP using firewall.
Well, that probably means that it isn't a bot but a botnet (ie, a network of computers, which have been perverted in their function). This does make it difficult to block addresses in the firewall. There are modules for doing just this kind of thing, but if you have to look up 10,000 addresses you may well reduce this problem at the expense of creating a new potential problem with DDoS attacks causing crashes. This is not necessarily advisable...
 
Old 07-18-2010, 09:15 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian 11
Posts: 6,133

Rep: Reputation: 419Reputation: 419Reputation: 419Reputation: 419Reputation: 419
Many people lock out the bots by using a captcha
 
Old 07-18-2010, 12:15 PM   #5
NyteOwl
Member
 
Registered: Aug 2008
Location: Nova Scotia, Canada
Distribution: Slackware, OpenBSD, others periodically
Posts: 512

Rep: Reputation: 139Reputation: 139
Does the user agent change? If not then block the bot by user agent rather than IP. Of course this isn't foolproof either and will still require some processing.

Using a captcha may stop the bot from posting messages but it won't do anything to reduce the traffic load, it may in fact increase it if the bot repeatedly tries to solve the captcha.

If the load is heavy and you can't block it at the server you'll need to work with your provider to block it further up the network.
 
Old 07-19-2010, 09:14 AM   #6
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
Dear all,
thank you for your replies...

Quote:
Originally Posted by salasi View Post
Well, that probably means that it isn't a bot but a botnet (ie, a network of computers, which have been perverted in their function). This does make it difficult to block addresses in the firewall. There are modules for doing just this kind of thing, but if you have to look up 10,000 addresses you may well reduce this problem at the expense of creating a new potential problem with DDoS attacks causing crashes. This is not necessarily advisable...
==> So is there anything I can do?

Quote:
Originally Posted by paulsm4 View Post
Hi -

I think the best you can do, if you can't blacklist the spambot, is probably probably just to serve a null, zero-byte web page.
==> currently I use a blank page which I set to 000 permission which caused 403 page is displayed. but still my Apache has to serve one extra useless thread every seconds...

Quote:
Originally Posted by tredegar View Post
Many people lock out the bots by using a captcha
Quote:
Originally Posted by NyteOwl View Post
Does the user agent change? If not then block the bot by user agent rather than IP. Of course this isn't foolproof either and will still require some processing.

Using a captcha may stop the bot from posting messages but it won't do anything to reduce the traffic load, it may in fact increase it if the bot repeatedly tries to solve the captcha.

If the load is heavy and you can't block it at the server you'll need to work with your provider to block it further up the network.
==> I have completely remove that page so basically I don't need any captcha. I just want to block it's request towards my Apache.
 
Old 07-19-2010, 11:17 AM   #7
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 25,809

Rep: Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747Reputation: 7747
Quote:
Originally Posted by yoachan View Post
Dear all,
thank you for your replies...

==> So is there anything I can do?

==> currently I use a blank page which I set to 000 permission which caused 403 page is displayed. but still my Apache has to serve one extra useless thread every seconds...

==> I have completely remove that page so basically I don't need any captcha. I just want to block it's request towards my Apache.
Ok...did you read NyteOwl's reply????
Quote:
Originally Posted by NyteOwl
If the load is heavy and you can't block it at the server you'll need to work with your provider to block it further up the network.
Since you're dealing with a botnet, you won't be able to block ALL the addresses...as soon as you block one, another will come up, as was discussed earlier.
 
Old 07-20-2010, 08:33 AM   #8
yoachan
Member
 
Registered: Nov 2009
Posts: 109

Original Poster
Rep: Reputation: 16
@TB0ne & @NyteOwl
Ok, that's ring a bell.
Contacting my provider is my only chance.
Thank you for clearing this out.


regards,

yoachan
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] simulating blackhole attack and wormhole attack in ns-2 aditijigyasi Linux - Newbie 7 07-04-2016 08:50 AM
Help! have belaflex.ind.br web page attack Woogieman Linux - Newbie 10 10-26-2009 08:32 AM
EasyIDS help, no TCP traffic on NTOP page, no activity at all on base/snort page a2brute Linux - Distributions 6 08-14-2009 09:29 AM
I cant change the default test page in apache server to add my page.y nhemapriya Linux - Newbie 3 05-13-2004 12:35 PM
RH & HP4050N PCL - page, pause, page, pause, page andguent Linux - Hardware 0 11-10-2003 08:35 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 09:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration