Skip to content

Instantly share code, notes, and snippets.

@lmeyer
Created December 28, 2017 00:22
Show Gist options
  • Save lmeyer/bdae4a8a8242349afb5aa23f418082a0 to your computer and use it in GitHub Desktop.
Save lmeyer/bdae4a8a8242349afb5aa23f418082a0 to your computer and use it in GitHub Desktop.
Protect gravityforms uploads
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$
RewriteRule ^app/uploads/gravity_forms/(.*)$ /index.php [NC,R=401,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment