Last active
March 22, 2022 01:05
-
-
Save pstoute/fe1ab018eea2c5dd9f5c97e9bbe494b8 to your computer and use it in GitHub Desktop.
7G Whitelist Rules for ManageWP IP addresses
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 ~* "(34.211.180.66|54.70.65.107|34.210.224.7|52.41.5.108|52.35.72.129|54.191.137.17|35.162.254.253|52.11.12.231|52.11.29.70|52.11.54.161|52.24.142.159|52.25.191.255|52.34.126.117|52.34.254.47|52.35.82.99|52.36.28.80|52.39.177.152|52.41.237.12|52.43.13.71|52.43.76.224|52.88.96.110|52.89.155.51|54.187.92.57|54.191.32.65|54.191.67.23|54.191.80.119|54.191.135.209|54.191.136.176|54.191.148.85|54.191.149.8|52.26.122.21|52.24.187.29|52.89.85.107|54.186.128.167|54.191.40.136|52.88.119.122|52.89.94.121|52.25.116.116|52.88.215.225|54.186.143.184|52.88.197.180|52.27.171.126|34.211.178.241|52.24.232.158|52.26.187.210|52.42.189.119|54.186.244.128|54.71.54.102|34.210.35.214|34.213.77.188|34.218.121.176|52.10.190.191|52.10.225.96|52.11.187.168|52.25.139.76|52.43.127.200|54.191.108.9|54.70.201.228|44.224.174.169|52.32.57.81|44.225.177.160|34.223.186.249|44.224.135.238|44.226.111.14|44.225.203.104|44.226.100.122|44.224.250.144|44.225.118.211|54.189.93.69|44.231.184.112|44.238.10.27|54.185.116.30|44.238.58.95|52.13.23.154|54.149.16.35|44.226.97.20|54.244.242.144|44.238.67.135|44.235.15.76|54.214.47.164|34.214.48.135|54.184.234.227)") { | |
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; | |
} |
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 ManageWP.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/managewp-7g-context.conf
After you've added the context file, you'll need to restart Nginx
nginx -t
gp ngx reload