Skip to content

Instantly share code, notes, and snippets.

@pstoute
Last active June 12, 2025 18:00
Show Gist options
  • Save pstoute/d0efa203a8dcb941c751dd0fdde10188 to your computer and use it in GitHub Desktop.
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.
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;
}
@pstoute
Copy link
Author

pstoute commented Jun 12, 2025

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

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