Created
June 6, 2014 03:37
-
-
Save jacks0n/4e0323def1a74b21ea30 to your computer and use it in GitHub Desktop.
Lock down a specific site to a given IP address
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REMOTE_ADDR} !=59.167.223.97 | |
RewriteRule ^(.*)$ 404.php [R=404,L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment