Skip to content

Instantly share code, notes, and snippets.

@pstoute
Last active November 17, 2023 21:03
Show Gist options
  • 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 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