![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
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> order deny,allow deny from all allow from .originalhostname.com allow from .newhostname.com </Limit> |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Dec 2002
Posts: 719
|
maybe your server see you only as IP and can't resolve it to hostname ?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Jan 2004
Location: Cyprus
Posts: 1,327
|
Use actual IP
A lot of networks are unnamed for Apache |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
I'm guessing the changes they made to their hostname maybe aren't picked up by my hosts yet.
Thanks all. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Aug 2008
Posts: 1,719
|
Enter allow from 000.000.000 <- your ip instead of the domain name.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Confirmed User
Industry Role:
Join Date: Aug 2003
Location: Redirecting your traffic
Posts: 1,679
|
Maybe there is a third?
__________________
ICQ 228211529 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Apr 2005
Posts: 342
|
is there any easy way to block ips by U.S. city or state?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Industry Role:
Join Date: May 2006
Posts: 4,665
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
Too lazy to set a custom title
Join Date: Mar 2002
Location: Australia
Posts: 17,393
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() ![]() |
|||||||
|
|||||||
Bookmarks |
Tags |
htaccess, restrict by ip host |