Last active
June 12, 2025 18:00
-
-
Save pstoute/d0efa203a8dcb941c751dd0fdde10188 to your computer and use it in GitHub Desktop.
This is the whitelist for Checkview.io on GridPane managed sites running the 7G firewall. Add the file to your "/etc/nginx/extra.d/" directory then test nginx using "nginx -t" and if it passes, run "gp ngx reload" to restart Nginx.
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
set $exclusion_rule_match ""; | |
if ( $uri ~ ^/wp-json/checkview/v1/forms/formstestresults ) { | |
set $exclusion_rule_match 6; | |
} | |
if ( $args ~* ^&_checkview_token= ) { | |
set $exclusion_rule_match 6; | |
} | |
if ($bad_request_7g = $exclusion_rule_match) { | |
set $7g_drop_bad_request 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Install instructions:
nano /etc/nginx/extra.d/checkview-whitelists-7g-context.conf
Paste the contents of the file
[ctrl] + [x]
[y]
nginx -t
gp ngx reload