Skip to content

Instantly share code, notes, and snippets.

@pstoute
Last active November 17, 2023 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pstoute/72a68ad16d90d0f26fc9d37ca6a8c380 to your computer and use it in GitHub Desktop.
Save pstoute/72a68ad16d90d0f26fc9d37ca6a8c380 to your computer and use it in GitHub Desktop.
Whitelist the WP-Umbrella.com IP address
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;
}
@pstoute
Copy link
Author

pstoute commented Apr 12, 2022

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

@lamanrasmi
Copy link

Hi, how can i convert this rule to apache rewrite?

@pstoute
Copy link
Author

pstoute commented Apr 25, 2022

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.

@sulli1986
Copy link

Looking at my GridPane setup for wp-umbrella and Mr Stoute once again has our backs already. Total champ

@pstoute
Copy link
Author

pstoute commented Nov 15, 2023

This gist has been updated to whitelist the IPV6 IP address range in addition of the single IPV4 that WPUmbrella uses.

@pstoute
Copy link
Author

pstoute commented Nov 17, 2023

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