![]() |
Restricting access by IP in htaccess not working - any ideas
I have an admin directory restricted to my ISP host
This has worked great for months, now it doesn't and it locks me out. From what I can see, when I confirm the host name being used, this has changed. I have added the new host name to the htaccess but still not working. Depending on the service I use to check the ISP host name I get 2 different results, boith of these are added to the htaccess. I can add the actual IP address to htaccess and it works, but why is host name not working? What have I missed? Is this a cache issue somewhere do you think? Code:
<Limit GET POST PUT> |
maybe your server see you only as IP and can't resolve it to hostname ?
|
ya do it by ip address
|
Use actual IP
A lot of networks are unnamed for Apache |
I'm guessing the changes they made to their hostname maybe aren't picked up by my hosts yet.
Thanks all. |
goto cmd prompt and find your ip
|
Quote:
What do I do with it then? |
Enter allow from 000.000.000 <- your ip instead of the domain name.
|
Quote:
|
Maybe there is a third?
|
is there any easy way to block ips by U.S. city or state?
|
Quote:
|
Quote:
|
It's possible that your ISP's reverse DNS isn't set up properly, ie your server cannot resolve 192.168.111.222 to something.newhostname.com.
It's a dodgy way of allowing access anyway, since it's a wildcard... anyone from your ISP is permitted to connect... I'd stick with IP only. |
All times are GMT -7. The time now is 01:28 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123