Tagged articles
IP blocking
32 articles · Page 1 of 1
This article walks through installing the libmaxminddb library, downloading and compiling the ngx_http_geoip2 module, upgrading Nginx to version 1.18, adding the latest GeoLite2 database, configuring Nginx to reject non‑Chinese IPs, and verifying the setup with test requests.
IP blockingSecurityServer configuration
0 likes · 8 min read

This guide shows how to automatically download the latest APNIC IP allocation list, generate Nginx allow rules for Chinese IP ranges, configure the server to permit only those addresses, and set up daily updates, providing a free, low‑overhead way to block foreign traffic.
APNICChinaIP blocking
0 likes · 10 min read

This guide presents three practical, production‑grade methods to dynamically block IP addresses in Nginx—using OpenResty with Redis for millisecond response, fail2ban with log analysis for automated bans, and a pure‑shell file‑watch approach—each with step‑by‑step installation, configuration, and usage instructions.
Fail2banIP blockingOpenResty
0 likes · 8 min read

This article explains common security risks in login interfaces—such as brute‑force attacks, MITM interception, and credential enumeration—and provides practical defenses including captcha, rate limiting, IP blocking, mobile verification, HTTPS encryption, and additional logging measures.
Brute Force ProtectionCAPTCHAHTTPS
0 likes · 10 min read

This guide explains three practical ways to achieve dynamic IP blocking in Nginx—using Fail2ban, Lua with Redis, and Nginx's built‑in limit modules—detailing configuration steps, code examples, advantages, drawbacks, and best‑practice recommendations for various deployment scenarios.
Fail2banIP blockingLua
0 likes · 7 min read

This article examines common login security risks such as brute‑force attacks, captcha bypass, IP blocking, and man‑in‑the‑middle threats, and proposes layered defenses including password‑retry limits, captcha, phone verification, HTTPS, and encrypted payloads to significantly raise the attack cost.
Brute Force ProtectionCAPTCHAHTTPS
0 likes · 10 min read

This guide explains how to use Nginx, Lua (via OpenResty), and Redis to automatically block any IP that exceeds 60 requests per minute, storing the blacklist in Redis with a default one‑day ban and providing performance optimizations and testing steps.
BackendIP blockingLua
0 likes · 7 min read

This guide explains step‑by‑step how to install the GeoIP2 library, compile Nginx with the ngx_http_geoip2 module, download the MaxMind GeoLite2 database, configure Nginx to map country codes, and block non‑Chinese visitors by returning a 404 response.
ConfigurationIP blockingLinux
0 likes · 8 min read

This guide walks through installing the GeoIP2 library, compiling Nginx with the ngx_http_geoip2 module, downloading the latest MaxMind database, and configuring Nginx to reject requests from non‑Chinese IP addresses, complete with command‑line examples and verification steps.
IP blockingLinuxgeoip2
0 likes · 7 min read

This article examines common login vulnerabilities such as brute‑force attacks, CAPTCHA bypass, IP‑based lockouts, and man‑in‑the‑middle threats, and provides practical mitigation techniques—including password‑retry limits, CAPTCHA, SMS verification, HTTPS enforcement, and logging—to harden web authentication systems.
CAPTCHAHTTPSIP blocking
0 likes · 11 min read

This article explains how to detect and block foreign IP addresses from accessing a website by installing the ngx_http_geoip2 module, upgrading Nginx, configuring GeoIP2 databases, updating the Nginx configuration, and verifying the setup with real traffic tests.
IP blockingLinuxServer configuration
0 likes · 8 min read

This guide explains how to configure Nginx to block malicious IPs, mitigate DDoS attacks, limit request rates and body size, and prevent SQL injection and XSS attacks by using blacklist files, conditional rules, connection and request limits, and security headers.
DDoSIP blockingnginx
0 likes · 7 min read

Learn step‑by‑step how to create an Nginx configuration file, use AWK and shell scripts to detect IPs with more than 60 requests per minute, automatically generate deny rules, and schedule the process with crontab to keep your personal site safe from attacks.
IP blockingautomationawk
0 likes · 5 min read

This guide explains how to create an Nginx block list, use AWK to detect IPs with excessive requests, automate the process with a shell script, and schedule it via crontab to dynamically block offending IPs and return 403 responses.
IP blockingautomationawk
0 likes · 4 min read

This guide walks you through creating a blockip.conf file, integrating it into Nginx, using AWK to detect IPs with over 60 requests per minute, writing a shell script to generate deny rules, and scheduling the process with cron for automatic IP blocking.
IP blockingawkcron
0 likes · 5 min read

This guide walks you through creating a block list file, configuring Nginx to deny offending IPs, using AWK to extract high‑frequency visitors from access logs, writing a shell script to automate the process, and scheduling it with crontab for continuous protection.
IP blockingServer Operationsawk
0 likes · 5 min read

This guide explains how to create an Nginx block file, use AWK to identify IPs that exceed 60 requests per minute, write a shell script to generate deny rules, and schedule the script with crontab to automatically block abusive IPs and return a 403 response.
BackendIP blockingautomation
0 likes · 5 min read

This tutorial explains how to install the ngx_http_geoip2 module, upgrade Nginx to version 1.18, configure GeoIP2 databases, and modify the Nginx configuration to automatically reject requests from foreign IP addresses, complete with command‑line examples and verification steps.
IP blockingOperationsgeoip2
0 likes · 8 min read

This guide explains how to install the ngx_http_geoip2 module, upgrade Nginx, download the MaxMind GeoIP2 database, configure geoip2 directives and map rules, and finally block non‑Chinese IP addresses by returning a 404 response.
IP blockingLinuxgeoip2
0 likes · 8 min read

This tutorial explains how to prevent overseas IP addresses from reaching a website by installing the libmaxminddb-devel dependency, adding the ngx_http_geoip2 module to Nginx, upgrading to Nginx 1.18, configuring GeoIP2 database paths, mapping country codes, and returning a 404 response for foreign requests.
BackendIP blockinggeoip2
0 likes · 7 min read

This article examines common security risks such as brute‑force attacks, CAPTCHA bypass, login throttling, IP blocking, man‑in‑the‑middle threats, and outlines practical mitigation techniques including CAPTCHA, rate limiting, IP restrictions, mobile verification, HTTPS enforcement, and data encryption to harden web login functionality.
CAPTCHAHTTPSIP blocking
0 likes · 10 min read

This guide explains how to install the ngx_http_geoip2 module, upgrade Nginx, configure GeoIP2 databases, and modify the Nginx configuration to block requests from foreign IP addresses, providing step‑by‑step commands and example code for a Linux server.
IP blockingLinuxgeoip2
0 likes · 8 min read

This step‑by‑step guide shows how to install the libmaxminddb library, compile NGINX with the ngx_http_geoip2 module, download the latest GeoLite2 database, configure geoip2 directives, and verify that foreign IP addresses are blocked with a 404 response.
DevOpsIP blockinggeoip2
0 likes · 8 min read

This guide walks you through installing the GeoIP2 dependencies, adding the ngx_http_geoip2 module to NGINX, upgrading NGINX, downloading the latest GeoIP2 database, configuring NGINX to block non‑Chinese IPs, and verifying the setup with test requests.
IP blockingLinuxgeoip2
0 likes · 7 min read

This article examines common security threats to login APIs such as brute‑force attacks, CAPTCHA bypass, IP blocking, and man‑in‑the‑middle attacks, and presents practical mitigation techniques including rate limiting, captcha, phone verification, HTTPS, and encrypted transmission to harden authentication systems.
CAPTCHAHTTPSIP blocking
0 likes · 10 min read

The article outlines several anti‑crawling techniques—including IP restrictions, User‑Agent validation, CAPTCHAs, AJAX loading, noscript tags, and cookie checks—while also offering practical advice for writing ethical, efficient, and robust web crawlers.
CAPTCHAIP blockingScraping
0 likes · 6 min read

This article explains how to record login failures, lock accounts after multiple errors, block client IPs based on IP ranges, and limit login attempts using server variables, database checks, and PHP session handling, providing complete code examples for each technique.
BackendCode ExampleIP blocking
0 likes · 5 min read

This article examines common security threats to login APIs such as brute‑force attacks, man‑in‑the‑middle interception, and credential enumeration, and presents practical countermeasures including captchas, IP and account lockout, mobile verification, HTTPS enforcement, and comprehensive logging to harden authentication systems.
CAPTCHAHTTPSIP blocking
0 likes · 11 min read

This guide shows how to install Nginx on a RedHat 6.5 system, simulate rapid requests from a malicious IP using ApacheBench, examine the access logs, and then block that IP permanently with an iptables rule or Nginx configuration, verifying the block with curl.
IP blockingLinux-securityapachebench
0 likes · 7 min read


ITPUBJun 3, 2016 · Operations
This guide explains how to compile Nginx with the GeoIP module, install MaxMind's GeoIP library and database, configure the system linker, and set up Nginx directives to redirect traffic from selected countries to custom pages on a single VPS.
GeoIPIP blockingVPS
0 likes · 5 min read


ITPUBApr 1, 2016 · Information Security
This guide explains how to harden SSH on Linux by forcing key‑based authentication, disabling root password logins, and filtering malicious IPs that scan port 22, including step‑by‑step commands and permission settings.
IP blockingLinux-securitySSH
0 likes · 4 min read

This guide explains how to identify high‑frequency visitor IPs from Nginx logs and configure Nginx to deny those IPs—or entire ranges—using block files, includes, and reload commands, providing both basic and advanced blocking techniques.
IP blockingOperationsnginx
0 likes · 4 min read
