![]() |
.htaccess question for the server savy.
This is what's in it now...
# -FrontPage- Options None <Limit GET POST> order deny,allow deny from all allow from all require group authors administrators </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthType Basic Where would I insert the ip I want to block, and in what format should I put it? Thank you, Bill |
If you want to allow users from some IPs, and deny all others, you type:
order deny,allow deny from all allow from 12.13.14.15 allow from 12.13.14.16 and so on. besides, you can define an address mask in allow from rule. for example, you want to allow all users from 12.13.14.* network - then you type: allow from 12.13.14.0/24 so for 12.13.*.* - 12.13.0.0/16 and so on... you get that. and if you want to allow all users except some addresses, you type order allow,deny allow from all deny from 12.13.14.15 and so on. masks are allowed too. No matter where place you put those strings in .htaccess it will work fine. |
Quote:
<Limit GET POST> order deny,allow deny from all allow from all require group authors administrators </Limit> <Limit PUT DELETE> order deny,allow deny from all allow from .domain.com 172.16. </Limit> But your code doesnīt block one IP adress, it blocks all and allows the specific domains and IPīs you mention in the allow derictive. Itīs like mysh said, you have to put it the other way round. |
All times are GMT -7. The time now is 08:06 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123