How to block malicious IPs on Nginx

Quick and easy tips to deal with emergency situations THE imagine a Friday evening, you can already feel the taste of a light beer going down your throat, and you’re anticipating the moment when you’ll close slack and take your eyes off the monitor for a few hours. This idyllic scenario can be different depending on your preferences and age, but beer, or cocktails, or films, herbal tea and Netflix at a certain point of the week, anyone who manages a website or a server (or more) dreams of it. All this children permitting, but that’s another story. This isn’t that kind of evening though, the system has been compromised by a wave of spam that is drowning email inboxes and causing inconvenience to users.

You now find yourself in front

of one or more illuminated monitors, with the incessant sound of notifications reporting new unwanted messages. The programmer, you already know, is away for the weekend, and is not available. Maybe you have a God in your heart, maybe you don’t, but it’s not a night where you feel a lot of love. You begin to analyze the origin of the spam, access the server logs, and look for traces of intrusions and France WhatsApp Number Data vulnerabilities, looking for clues to understand what the flaw in the system is. Meanwhile, users continue to report the sudden increase in unwanted messages, increasing pressure on the situation.

WhatsApp Number List

Start implementing tighter

firewall rules, maybe try to identify patterns in spam messages LOB Directory to implement filters, but the time comes… Block IPs, cut off the bull’s head Maybe you talk to other professionals before doing it, maybe not, sometimes you have to make a decisive move, block the IPs that are causing the damage. First of all, whether you use Apache, Nginx or other web servers, you need to see which IPs are causing the damage. Let’s say a bot goes to the contact page, fills it in with fake data, and sends spam. We will give examples on Apache and Nginx, if you use another web server, you will have to adapt the logic shown. At this point, on your server, you analyze the page access log

Scroll to Top