Brute force, DDOS attacks - How do you prevent such kind of stuff?

What is happening here is, people are just crawling my website for all the vulnerabilities, and IDK if there is any way to block this kind of attacks, I did have some firewall rules in place but the thing is,

The IPs are getting changed, the pages which are getting DDOs are basically 404's on my site.
If they're not preventing your site from loading, and they're not finding any vulnerabilities, why do you even care?

people will scrape your site all day every day looking for vulnerabilities, there's nothing you can do about it.

also its not DDoS unless they're hitting you from thousands of IPs many times per second. I'm not sure what you're describing counts as "DDoS"
 
You use wordpress? If so install secupress and activate ip ban/geo ban - requires some work if you want to add them manually.
Also fail2ban works good too.

Secupress has also 404-ban requests. Also fail2ban (free wordpress plugin) can handle 403 requests and set them to prison. works like a charm and actually exactly what you need vs 403 requests.
 
Last edited:
If they're not preventing your site from loading, and they're not finding any vulnerabilities, why do you even care?

people will scrape your site all day every day looking for vulnerabilities, there's nothing you can do about it.

also its not DDoS unless they're hitting you from thousands of IPs many times per second. I'm not sure what you're describing counts as "DDoS"
Agreed with this. I think there's nothing you can do here. Your best bet is to block their IP/country and even if you do that, they will use a VPN to change their IP address.
The only thing you can do is to make sure your site is secured properly and change your login URL.
 
You use wordpress? If so install secupress and activate ip ban/geo ban - requires some work if you want to add them manually.
Also fail2ban works good too.

Secupress has also 404-ban requests. Also fail2ban (free wordpress plugin) can handle 403 requests and set them to prison. works like a charm and actually exactly what you need vs 403 requests.
I don't think this will work
 
I really told to OP (owner of this thread)

I will repeat again, to be clear. You can't prevent people looking for vulnerabilities through your website.
The best way is using a WAF like Cloudflare, Incapsula, BitNinja, Sucuri firewall, Nginx Rate Limits.

Disable Obsolete and useless PHP Functions, closing ports you don't use and changing your SSH port.
However always you will receive a brute force attack, try to change wp-admin link to access your Wordpress Panel.

You will still receiving brute force attacks, no matter what. You can't prevent it at 100% and expect.

Now against DDoS Attacks, you can prevent and block (not at 100% of course) but make it more difficult.

I WILL REPEAT, THE BEST WAY TO PREVENT DDOS ATTACK is USING A GOOD HOSTING PROVIDER with DDoS Protection Filters for Layer 3, Layer 4 and Layer 7. Cloudflare won't save you!! It can help, yes. But not save it from you being ddosed!


If you want to ignore what I told you in Green, feel free. Seems like you didn't understand what I told and others told to you.

Got it?
 
I really told to OP (owner of this thread)

I will repeat again, to be clear. You can't prevent people looking for vulnerabilities through your website.
The best way is using a WAF like Cloudflare, Incapsula, BitNinja, Sucuri firewall, Nginx Rate Limits.

Disable Obsolete and useless PHP Functions, closing ports you don't use and changing your SSH port.
However always you will receive a brute force attack, try to change wp-admin link to access your Wordpress Panel.

You will still receiving brute force attacks, no matter what. You can't prevent it at 100% and expect.

Now against DDoS Attacks, you can prevent and block (not at 100% of course) but make it more difficult.

I WILL REPEAT, THE BEST WAY TO PREVENT DDOS ATTACK is USING A GOOD HOSTING PROVIDER with DDoS Protection Filters for Layer 3, Layer 4 and Layer 7. Cloudflare won't save you!! It can help, yes. But not save it from you being ddosed!

If you want to ignore what I told you in Green, feel free. Seems like you didn't understand what I told and others told to you.

Got it?
I don't know why you so being aggressive here.

I am taking notes of everything said here and all the steps are being implemented.

I know, Cloudflare doesn't protect the Origin, I know about UFW firewall rules, VULTR firewall, etc. But the thing here is, Even the MSN, Bing, Yandex and other legitimate bots are also crawling the same pages.
 
I don't know why you so being aggressive here.

I am taking notes of everything said here and all the steps are being implemented.

I know, Cloudflare doesn't protect the Origin, I know about UFW firewall rules, VULTR firewall, etc. But the thing here is, Even the MSN, Bing, Yandex and other legitimate bots are also crawling the same pages.
Sorry, I don't want to be aggressive is not my intention to be. Sorry if you feel that from my part.

I just told you the solution and you "ignore it" and still believing in the magic of Cloudflare.

Cloudflare helps and prevents DDoS? Yes sure, but not all
Why my website goes down with ddos if I have cloudflare? Your Hosting (Origin IP) is the answer, NO DDoS = Down

Sorry if I be rude with you, like I said before not my intention to it.
But people needs to understand everything needs to be optimized to handle with DDoS.

Anyway, sorry for being rude or aggressive with you (if you feel it), but i gave to you the solution.

Using Providers that uses Voxility, Path, Combahton, OVH DDoS Protection is the solution

Cheers.
 
Sorry, I don't want to be aggressive is not my intention to be. Sorry if you feel that from my part.

I just told you the solution and you "ignore it" and still believing in the magic of Cloudflare.

Cloudflare helps and prevents DDoS? Yes sure, but not all
Why my website goes down with ddos if I have cloudflare? Your Hosting (Origin IP) is the answer, NO DDoS = Down

Sorry if I be rude with you, like I said before not my intention to it.
But people needs to understand everything needs to be optimized to handle with DDoS.

Anyway, sorry for being rude or aggressive with you (if you feel it), but i gave to you the solution.

Using Providers that uses Voxility, Path, Combahton, OVH DDoS Protection is the solution

Cheers.
I never ignored anyone's tips that are provided here. I am just taking notes of it and implementing it.

I know Cloudflare has limited capabilities, Neither I said that I will believe in Cloudflare magic.

I am using everything right now, from Cloudflare to Wordfence to Vultr Firewall.
 
I never ignored anyone's tips that are provided here. I am just taking notes of it and implementing it.

I know Cloudflare has limited capabilities, Neither I said that I will believe in Cloudflare magic.

I am using everything right now, from Cloudflare to Wordfence to Vultr Firewall.
The problem is.

Wordfence only will protect you against brute force, nothing more... Wordfence is not bulletproof against Hacking or DDoS.
Vultr Firewall isn't nothing, is just a Firewall.. Firewall is different of Anti-DDoS, you can have UFW rules or IPTables rules and still going down with DDoS Attacks.

The solution for DDoS Attacks remains and always will be in the provider.
There are many hostings with ddos protection but is BASIC, even 2Gbps or HTTP Flood you can put it offline.

For this reason if you want to stay online and protected against ddos attacks even large
You should look to other Hosting providers, Vultr doesn't have good ddos protection comparing with OVH, Blazingfast, JavaPipe, Combahton, Voxility and Path.net or even CF Magic IP Transit.

I don't will answer anymore, this is where you can have a decent and good ddos protection with pretty and decent prices
https://fastpipe.io (Combahton DDoS Protection)
https://blazingfast.iohttps://buyvm.net (always out of stock, but they are pretty good, they use DDoS Protection from Path which is one of best out there)
https://javapipe.com/ (Voxility DDoS Protection + Custom ACL Rules and more filterings, high know-how about DDoS & Attacks)
https://flokinet.is/ (Voxility DDoS Protection)
https://alexhost.com/vps/ (Voxility DDoS Protection)
https://ovh.com (Great, decent prices, DDoS Protection is great, unless someone launch attack from OVH network to another OVH server)

None of those listed above vultr is better.. In none. Vultr have great Network speed and Datacenters? Sure.
But is not the greatest and well protected Hosting out there.

Wordfence won't block DDoS, just in case. Vultr firewall is just a firewall.. yes you can block some HTTP Flood or IPs, but doesn't do nothing.
In fact Vultr is easy to takedown for skids.

Enjoy
 
lots of in-depth replies here

i used to run a site that got ddossed very frequently (daily for weeks) by my competition. eventually they gave up in the face of my persistence.
i was renting a vps at the time. first time managing it myself. not too hard with youtube/blog posts having tutorials to hold your hand for everything.
fail2ban was my favorite tool. there was command to show connections by IP. then another command to "blackhole" that IP.
There's probably a way to automate if anyone hits your site too fast & often to auto-add them to the blackhole list.
if not you can set up some monitor to see when your servers resources are over threshold then manually jump on the ssh and see who needs to be blackholed immediately. another thing is straight up ban some countries from even accessing your site. especially if they are not bringing in leads worth their weight in cash.
 
Hey, let me know if you still need protection
I can block all DDoS attacks without any access too. Just provide me with required log files and I will devise solutions for you.
You can message me if interested.
 
A brute force attack utilizes trial-and-error to guess login information and encryption keys or find a hidden web page. Cyberpunks work via all possible varieties expecting to guess correctly.

The following are the Effective Strategies Against Server Brute Force Attacks:

  1. Microsoft Windows Firewall
  2. CSF Firewall
  3. Use Strong Passwords
  4. Strengthen Your Login Process
  5. Use Captcha
 
A brute force attack utilizes trial-and-error to guess login information and encryption keys or find a hidden web page. Cyberpunks work via all possible varieties expecting to guess correctly.

The following are the Effective Strategies Against Server Brute Force Attacks:

  1. Microsoft Windows Firewall
  2. CSF Firewall
  3. Use Strong Passwords
  4. Strengthen Your Login Process
  5. Use Captcha
6. 2FA
 
Honestly you should be ok, attackers always try to bruteforce admins pages or find vulnerability, as long as you're not getting hardcore DDoS which slow or down your website and you update Wordpress and your plugins, you should be good ;)
 
A brute force attack utilizes trial-and-error to guess login information and encryption keys or find a hidden web page. Cyberpunks work via all possible varieties expecting to guess correctly.

The following are the Effective Strategies Against Server Brute Force Attacks:

  1. Microsoft Windows Firewall
  2. CSF Firewall
  3. Use Strong Passwords
  4. Strengthen Your Login Process
  5. Use Captcha

So Mister Security Research @Clay_P

How 3. will prevent brute force attacks? I can have a 200 length text strong password and brute force attacks will continue. That is not the point.
That is a security pratice, not a prevention of "Brute Force", even with "strong" / mild / low passwords security you will receive brute force, you can't stop it with strong password lol.

That is a mistake you should edit and telling that won't be effective against brute force.

1. What the hell? Windows Firewall in Linux?

Have a nice day

----- Message to OP @Epicster --------

I read some messages here that are a little "stupid" sorry to say that, is not to be rude with anyone, but some people really needs to understand what is a brute force attack.
Brute Force attack don't end even if you have a strong password, strong password is to prevent brute force to discover your password, but won't prevent him to still trying.

The best to do is avoiding any nulled plugin or theme, it can have backdoors. Also a lot of plugins you shouldn't use. Wordfence is enough.

1 ) Use Cloudflare and add your URL login page to Under Attack with CAPTCHA with validation of 30min or 1h.
2) Change URL of your login admin area to other (please don't use a plugin to do this, you can do through phpmyadmin oy MySQL command in DB)
3) You use Nginx or Apache? Use Directory Password like this:
https://ubiq.co/tech-blog/how-to-password-protect-directory-in-nginx/4) Fail2ban or other firewall and increase time ban for more hours or days.
5) Check which is the country that is doing "high brute force attacks" and do IPGeo Blocking or ASN Blocking (this is very effective).
6) If you are using or you had used nulled plugins, themes you can expect brute force attacks.
7) Nginx Rate Limiting (cloudflare also have rate limiting for free in some pages use it in login)
8) Blacklist all IPs from accessing your login page, and allow only your IP Range.

TL;DR:
Always will be someone doing that even if you block 90%, you always will be target by automation bots doing brute force and scanning IPs in Internet.
Accept, prevent and pratice a hardening security.



Just use that in your login page or hire someone to do it, however is not difficult.
 
Almost every host has ddos protection service. Better to consult your hosting provider. Cloudflare also is an option but not really effective unless got paid subscriptions.
 
Use firewalls and anti-virus softwares for preventing cyber-attacks on your system. You also need to keep your servers safe from physical access of outsiders.
 
Use complex passwords.
Change SSH and MySQL ports (and block the default ones).
Change the default login page.
Analyze the server logs and see which URLs are receiving the most requests from attackers. Block them if you don't need them.
Install Fail2Ban.
Set a rate limiting rule (be careful you can block access to real users and legit bots if you misconfigured it)
 
Use firewalls and anti-virus softwares for preventing cyber-attacks on your system. You also need to keep your servers safe from physical access of outsiders.
 
Back
Top