Tag: nginx

Using GeoIP in Nginx

Set up Nginx's GeoIP module for country detection without recompiling — modern database sources, country-based routing, access control, and passing location data to PHP.

Handling Wildcard Subdomains with Nginx and PHP

Catch any subdomain at the DNS level, configure Nginx to accept it, and route it dynamically in PHP — with modern wildcard SSL, provider availability notes, and realistic use cases for 2026.

Rate Limiting with Nginx's limit_req

Use Nginx's limit_req module to protect your site from HTTP floods and brute-force attacks — with real-world examples for static pages, PHP handlers, and login endpoints.

Protecting Folders with Nginx

Basic authentication in Nginx is a quick way to gate a directory, an admin area, or an entire staging site behind a username and password. It's not a replacement for a full login system, but for internal tools, dev environments, or adding a second layer in front of something already protected, it does the job with almost no overhead.