Order deny,allow     Deny from all     Allow from 127.0.0.1   but keep getting a 500 err..."/>

Restricing access to one IP with .htaccess problems

Hi

I'm trying to restrict access to a folder with .htaccess.

I'm using...

PHP Code:
<Files "*.*">
    
Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Files

but keep getting a 500 error. When I check my logs I see this...

PHP Code:
Regex could not be compiled 
Funnily enough I'm trying this on two seperate servers and getting the same error on both. Can anybody shed any light and suggest a solution?

Lux

 

 

 

 

Top