Hi,
I am trying to block certain IPs from visiting my site by using .htaccess script like this:
Order Deny,Allow
Deny from xx.xxx.xxx.xx
Allow from all
but it does no work (I checked it by entering my own IP).
The .haccess file is my root directory. Should Deny, Allow directives be placed within some containers such as <Directory></Directory>, or it can be "stand-alone" directives?
Does it matter in which part of .htaccess it's placed (in my case there is a preceding WordPress script like <IfModule mod_rewrite.c>....</IfModule>
My site is hosted on apache server with linux hosting and GoDaddy tech support told me .htaccess should work there although they can't provide scripting help.
Thanks