Skip to content

Instantly share code, notes, and snippets.

@devinsays
Created March 19, 2018 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save devinsays/d0781b0b7909c2d16e1b8141c950edea to your computer and use it in GitHub Desktop.
Save devinsays/d0781b0b7909c2d16e1b8141c950edea to your computer and use it in GitHub Desktop.
Restrict access to site to specific IPs
order deny,allow
deny from all
allow from 98.6.000.111
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment