Skip to content

Instantly share code, notes, and snippets.

@vanthoi
vanthoi / limt_req_zone_whitelist
Created June 14, 2024 10:31 — forked from skaag/limt_req_zone_whitelist
A way to whitelist certain IP ranges from limit_req_zone in nginx
geo $limited {
default 1;
# Wordpress Jetpack ranges:
192.0.0.0/16 0;
66.135.0.0/16 0;
66.155.0.0/16 0;
76.74.0.0/16 0;
}