Skip to content

Instantly share code, notes, and snippets.

@cipriantepes
Created August 21, 2017 19:17
Show Gist options
  • Save cipriantepes/6ec2ca4d268d4b40045da25104b044cb to your computer and use it in GitHub Desktop.
Save cipriantepes/6ec2ca4d268d4b40045da25104b044cb to your computer and use it in GitHub Desktop.
GravityForms fix 403 admin-ajax.php
### DISABLE mod_security firewall
### Some rules are currently too strict and are blocking legitimate users
### We only disable it for URLs that contain the regex below
### The regex below should be placed between "m#" and "#"
### (this syntax is required when the string contains forward slashes)
### @src https://stackoverflow.com/questions/12928360/how-can-i-disable-mod-security-in-htaccess-file
<IfModule mod_security.c>
<If "%{REQUEST_URI} =~ "m#/wp-admin/admin.php?page=gf_edit_forms/#">
SecFilterEngine Off
</If>
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment