Skander Hamdi
Skander Hamdi

Reputation: 141

how to allow access to folders only for localhost in apache

I want to allow access to these folders only for localhost

.htaccess file not working correctly

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

Here is the error description

Upvotes: 2

Views: 1763

Answers (1)

wilfleaji
wilfleaji

Reputation: 128

Try that way :

order deny,allow
deny from all
allow from 127.0.0.1 ::1

Upvotes: 2

Related Questions