Skip to content

Instantly share code, notes, and snippets.

@pstoute
Last active September 16, 2024 05:55
Show Gist options
  • Select an option

  • Save pstoute/72a68ad16d90d0f26fc9d37ca6a8c380 to your computer and use it in GitHub Desktop.

Select an option

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

pstoute commented Apr 12, 2022 •

Copy link
Copy Markdown
Author

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
Copy Markdown

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

@pstoute

pstoute commented Apr 25, 2022

Copy link
Copy Markdown
Author

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
Copy Markdown

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

@pstoute

pstoute commented Nov 15, 2023

Copy link
Copy Markdown
Author

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

@pstoute

pstoute commented Nov 17, 2023

Copy link
Copy Markdown
Author

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

@edwinmasripan

Copy link
Copy Markdown

Can this be applied to LSWS? Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment