Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alenabdula/a9d7cf2ffd9171e9a0794999e84e8cc9 to your computer and use it in GitHub Desktop.
Save alenabdula/a9d7cf2ffd9171e9a0794999e84e8cc9 to your computer and use it in GitHub Desktop.
# Deny all access if user is not logged into WordPress
#
#
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} ^.*$
RewriteCond %{HTTP_COOKIE} !^.*wordpress_logged_in.*$ [NC]
RewriteRule . - [R=403,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment