Block IP’s with .htaccess?
-
Hi all! I am trying to block certain IP’s from accessing my website. Mainly, my sister-in-law. (It’s a loooong story.)
I am confused where to place this block:
order allow,deny
deny from 123.45.6.7
deny from 012.34.5.
allow from allWhen I am in my .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
Thanks in advance!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Block IP’s with .htaccess?’ is closed to new replies.