By Southpac
Hi,
I’m working on a username/password protected system and I have login.php file that accepts username and password pair over https and just responds with with an error code or success code.
Question: how to monitor if someone started a bruteforce attack on my login.php script (assuming they are making a lot of requests to it) and how to block them from doing that?
Thank you!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
I would recommend adding a captcha to the login page, that way you would stop most of the bots from brute-forcing the login page.
Also, you could check your Nginx or Apache access logs in order to identify if there are any suspicious numbers of requests to the login page. You could have a look at this script which would summarize the access logs for you.
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.