General Community > Scripting Help
script (php)
(1/1)
Britannia360:
Hello,
My forum has been very slow for the past week, very very sluggish so I contacted host and they said this:
about yours forum and loading speed, you have dos attacks that are using the mysql to load very slow, you need to setups some antiddos script (php) in forum to solve this.
I'm wondering what to do since I have no idea... I have cloudflare and all but it seems to fail with this part... so how can I get my forum back to speed with this script and what script?
Many thanks
MrPhil:
It sounds like you have a totally incompetent (or lazy) host. It's their job to deal with Denial of Service attacks, by blocking offending IP addresses as far upstream as they can. You or they need to first find the IP addresses of the attackers. If they leave it to you to handle, you can put these IP addresses (or ranges of addresses) in /.htaccess "deny from" entries.
--- Code: ---order allow,deny
deny from 121.12.118.162
deny from 122.195.244.175
deny from 221.12.160.198
(etc.)
allow from all
--- End code ---
That would be better than using SMF "ban" by IP address, as it would keep them from getting deeply into your site and causing many database accesses. But first, you will have to look at your access logs to see who to ban. Your host (if they're worthy of the name) will help you with this.
It's possible that it's a real DoS or even DDoS attack, but it also might be a misbehaving search engine spider. A lot of people have reported problems with Baidu and rogue bots claiming to be Baidu. If they are hitting you hard enough to bring down your server, you have no choice but to ban them even if their mission is perfectly innocent.
Navigation
[0] Message Index
Go to full version