GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Restricting access by IP in htaccess not working - any ideas (https://gfy.com/showthread.php?t=959354)

TheDA 03-20-2010 06:34 AM

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>


nickutis 03-20-2010 06:52 AM

maybe your server see you only as IP and can't resolve it to hostname ?

fris 03-20-2010 07:16 AM

ya do it by ip address

arachnO 03-20-2010 07:38 AM

Use actual IP
A lot of networks are unnamed for Apache

TheDA 03-20-2010 07:45 AM

I'm guessing the changes they made to their hostname maybe aren't picked up by my hosts yet.

Thanks all.

fris 03-20-2010 07:47 AM

goto cmd prompt and find your ip

TheDA 03-20-2010 07:57 AM

Quote:

Originally Posted by fris (Post 16962727)
goto cmd prompt and find your ip

Thanks.

What do I do with it then?

TisMe 03-20-2010 08:06 AM

Enter allow from 000.000.000 <- your ip instead of the domain name.

TheDA 03-20-2010 08:31 AM

Quote:

Originally Posted by TisMe (Post 16962761)
Enter allow from 000.000.000 <- your ip instead of the domain name.

Yes that bit works, it's the hostname side of things that isn't. I was hoping to get that to work.

Bman 03-20-2010 10:30 AM

Maybe there is a third?

habibjr 03-20-2010 11:10 AM

is there any easy way to block ips by U.S. city or state?

TheDA 03-20-2010 01:31 PM

Quote:

Originally Posted by Bman (Post 16963033)
Maybe there is a third?

I can't see why there would be.

TheDA 03-20-2010 01:32 PM

Quote:

Originally Posted by habibjr (Post 16963091)
is there any easy way to block ips by U.S. city or state?

I've heard of people doing it, but I don't know how accurate it is.

rowan 03-20-2010 01:53 PM

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