Last active
July 10, 2023 18:37
-
-
Save pstoute/19ad113a0d017c1c76da05c00ab734b5 to your computer and use it in GitHub Desktop.
7G Whitelist for Better Uptime IPs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($remote_addr ~* "(23.88.41.31|3.220.166.35|45.33.100.21|45.56.78.139|45.79.47.102|143.42.97.120|143.42.97.213|116.202.157.36|116.202.33.182|142.132.140.32|142.132.140.42|142.132.140.47|142.132.140.77|168.119.90.223|168.119.96.203|54.243.207.163|74.207.228.249|95.216.117.142|139.162.109.252|142.132.140.107|142.132.140.122|172.104.109.161|172.105.169.250|172.105.173.108|172.105.190.118|172.105.206.169|2a01:4f9:2b:1b6e::|2a01:4f8:10b:3d1b::|2a01:4f8:231:2ac9::|2a01:4f8:251:53df::|2a01:4f8:261:1254::|2a01:4f8:261:1257::|2a01:4f8:261:1262::|2a01:4f8:261:1280::|2a01:4f8:261:1296::|2a01:4f8:261:129f::|2a01:4f8:c17:ef62::|2a01:4f8:c010:9ef1::|2400:8902::f03c:92ff:fe47:3951|2400:8902::f03c:92ff:fe47:395f|2400:8902::f03c:92ff:fecd:665e|2400:8907::f03c:92ff:fe47:3955|2400:8907::f03c:92ff:fe47:397a|2400:8907::f03c:92ff:fe47:399e|2600:3c00::f03c:92ff:feaa:0335|2600:3c00::f03c:92ff:feaa:0354|2600:3c02::f03c:92ff:feba:b84a|2600:3c02::f03c:92ff:feba:d761|2a01:7e00::f03c:93ff:fe22:2372|2a01:7e00::f03c:93ff:fe22:23c8)") { | |
set $7g_drop_bad_request 0; | |
set $7g_drop_bad_referer 0; | |
set $7g_drop_bad_query_string 0; | |
set $7g_drop_not_allowed_method 0; | |
set $7g_drop_bad_bot 0; | |
} |
Added new better uptime IPs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a quick gist for folks who use the 7G firewall and BetterUptime.com to monitor their sites. Add this file via root access to your nginx extras location and make sure that your server configuration will add the added context file.
The location for GridPane powered servers:
/etc/nginx/extra.d/betteruptime-7g-context.conf
After you've added the context file, you'll need to restart Nginx
nginx -t
gp ngx reload