Created
May 23, 2016 13:54
-
-
Save alenabdula/a9d7cf2ffd9171e9a0794999e84e8cc9 to your computer and use it in GitHub Desktop.
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
# 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