Skip to content

Instantly share code, notes, and snippets.

@jacks0n
Created June 6, 2014 03:37
Show Gist options
  • Save jacks0n/4e0323def1a74b21ea30 to your computer and use it in GitHub Desktop.
Save jacks0n/4e0323def1a74b21ea30 to your computer and use it in GitHub Desktop.
Lock down a specific site to a given IP address
<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