[Hrgeeks] Question on a .htaccess file

Anthony Gartner anthony at cnsva.com
Sun Mar 14 12:05:16 EDT 2010


i am trying to block a specific ip from even seing my site.  was surfing around and found that the .htaccess might be the simplest way

my exiting file looks like 

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

can i just make it
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
deny 213.5.71.12        <---- the change made 

# END WordPress

Will that work to block access

Thank you in advance


Anthony Gartner

SecuraBit Podcast
SecuraBit before it Bytes!!!
Co-Host on SecuraBit Podcast
http://securabit.com
anthonygartner at gmail.com
Skype: cnsinc
Security blog - http://grassrootssecurity.com







-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://hrgeeks.com/pipermail/hrgeeks/attachments/20100314/bc8116ea/attachment.htm 


More information about the HRGeeks mailing list