PDA

View Full Version : someone is attacking my forum


Amit86
05-23-2008, 03:07 PM
im getting attacked by mutli refresh's of a user that always changes his IP address.

this thing gets my website stuck and all of the hosting server stuck... every few mins forcing it to restart the hosting server

my web hoster told me i got one last chance to make it right before i need to find another hosting service,

my question to you, is there something like anti refresher per second i can install\configure to make the attacks stop?

geevest.com
05-23-2008, 03:38 PM
me too,i get attack in my site.
so my site down for 3days.and i lost my members.
im using vps before this.
and now im using dedicated server.the problem is solved.

WEBDosser
05-23-2008, 04:07 PM
it may not be your site that is getting attacked do you have a log file?. it could be that you are on a shared server and there's someone else is to blame

Amit86
05-23-2008, 04:29 PM
i got the log files, reported IPs to ISP
its my domain and i can show you the logs but i dont think it would help solve this

geevest.com
05-23-2008, 04:32 PM
how to check log file in vbulletin?

Amit86
05-23-2008, 04:38 PM
i checked my apache logfile in the DirectAdmin hosting server

snakes1100
05-23-2008, 06:24 PM
Does your server have connlimit enabled in the kernel, if it does, you can try this, just paste that in at a ssh prompt, iptables will error if its not compiled in.

iptables -A INPUT -p tcp --dport 80 -m connlimit --connlimit-above 3 -j REJECT --reject-with tcp-reset

That is global, wont matter what ip he is using.

Amit86
05-23-2008, 06:41 PM
i need something like a mod what auto ban's users who refresh the forums more than X times in a minute

snakes1100
05-23-2008, 06:56 PM
If the user is simply clicking refresh in a browser, he isnt going to be able to crash your site unless he is connected with 100's of browsers or a script.

The connlimit will stop anyone that is connected to port 80 more than 3 times and block the rest of the connections, i simply dont see it possible for him to crash your server the way you are saying he is doing it.

Amit86
05-23-2008, 07:14 PM
well, thanks.
ill try doing this next time my hosting admin will be online

snakes1100
05-23-2008, 09:18 PM
Do you know how to ssh into a server?

If you do, simply copy and paste that command and hit enter, if it spits back a error connlimit isn't compiled in to the kernel, if it accepts it, then your good to go.

That will stop any ip that is connecting more than 3 times to the server on port 80, that means refreshing as well.

Amit86
05-24-2008, 07:46 PM
i got an error while doing your command
iptables: No chain/target/match by that name
how do i fix this?