How to allow access to the folder only one SP address? Registered in .htaccess

order allow deny deny from all allow from 192.126.12.199 

That's all right, but does not allow anyone to enter the folder, even the owner of Ip 192.126.12.199. It infuriates me! All the documentation do, please help. Constantly with this thing crap.
UPD: It turned out that the syntax is not correct anywhere. Found the right one:

 Order Deny,Allow Deny from all Allow from 192.126.12.199 
  • one
    [Here] [1] asked? [1]: google.com/… - istem
  • it was here that I found this non-working example, they write in all sites - iproger
  • After UPD earned? - istem
  • Yes, it worked - iproger
  • Maybe the syntax was correct, only in the newest version it was changed ... I once had Mailman with it ... I was looking for a problem for a week and did not understand anything, but it turned out that I had to adjust the update a bit ... - Walter Nuss 8:04 pm

1 answer 1

The string ( Order deny, allow ) defines the sequence in which the deny and allow conditions are executed .
In the first case, you have ( order allow, deny ), access from a certain IP is first allowed, and then everyone is banned, so no one has access to the folder.
In the case of the order deny, allow , we first prohibit everything, and allow only those defined in Allow IP.