[Resolved] htaccess - allow access from a certain IP address

#1
I am trying to allow access from a certain IP address using the following lines in htaccess but it is not working. I have "limit" checked under Allow Override options for htaccess.

<Files *>
order deny,allow
deny from all
allow from MY IP
</Files>
 
Last edited by a moderator:
#6
AllowOverride is set to All in httpd.conf. What else could be the problem?


Code:
DocumentRoot "/var/www/html"

<Directory /home/*>
    AllowOverride All
    Options -MultiViews -Indexes FollowSymlinks IncludesNoExec +Includes
<Limit GET POST OPTIONS PROPFIND>
    Order allow,deny
    Allow from all
</Limit>
<LimitExcept GET POST OPTIONS PROPFIND>
    Order deny,allow
    Deny from all
</LimitExcept>
</Directory>

<Directory />
    Options All
    AllowOverride All
</Directory>

<Directory "/var/www/html">
    Options -Indexes FollowSymLinks
    AllowOverride All
    Order allow,deny
    Allow from all
   <IfModule mod_suphp.c>
        suPHP_Engine On
        suPHP_UserGroup webapps webapps
	SetEnv PHP_INI_SCAN_DIR
   </IfModule>
</Directory>
 
Top