Reputation: 21
I would like to install a Symfony2 to my domain, but before the development I need to limit the access of the domain to only my IP address.
I tried this to the .htaccess located in the webroot:
order deny,allow
deny from all
allow from 222.222.222.222
It does not work.
It just let no one see the website ... if i change deny from all to allow from all.. it's working, but i don't need this. Any suggestions ?
Upvotes: 1
Views: 194
Reputation: 21003
this will block all traffic except traffic from 222.222.222.222
Order Deny,Allow
Deny from all
Allow from 222.222.222.222
if you want to block just 1 ip, you need
Order Deny,Allow
Deny from 222.222.222.222
Allow from all
Upvotes: 1