Last active
November 17, 2023 21:03
-
-
Save pstoute/72a68ad16d90d0f26fc9d37ca6a8c380 to your computer and use it in GitHub Desktop.
Whitelist the WP-Umbrella.com IP address
This file contains 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 ($wpumbrella_ips) { | |
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; | |
} |
Hi, how can i convert this rule to apache rewrite?
Hi, how can i convert this rule to apache rewrite?
Unfortunately, I don't use the Apache stack in our servers (only using Nginx). You could try looking for documentation surrounding OLS which may get you a better answer than our Nginx rules.
Looking at my GridPane setup for wp-umbrella and Mr Stoute once again has our backs already. Total champ
This gist has been updated to whitelist the IPV6 IP address range in addition of the single IPV4 that WPUmbrella uses.
New instructions to whitelist the IPV6. You will not need to create a second file to get the IPV6 range added.
File 2: https://gist.github.com/pstoute/47539c4e4eb955b02f2dffdaa4b9e139
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 WP-Umbrella.com to manage your 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:
nano /etc/nginx/extra.d/_custom/wpumbrella-7g-context.conf
After you've added the context file, you'll need to restart Nginx
nginx -t
gp ngx reload