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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-20-2010, 06:34 AM   #1
TheDA
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>
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 06:52 AM   #2
nickutis
Confirmed User
 
Join Date: Dec 2002
Posts: 719
maybe your server see you only as IP and can't resolve it to hostname ?
nickutis is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 07:16 AM   #3
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 54,615
ya do it by ip address
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


my contact: fris at fris.net
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 07:38 AM   #4
arachnO
Confirmed User
 
arachnO's Avatar
 
Industry Role:
Join Date: Jan 2004
Location: Cyprus
Posts: 1,327
Use actual IP
A lot of networks are unnamed for Apache
arachnO is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 07:45 AM   #5
TheDA
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.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 07:47 AM   #6
fris
Too lazy to set a custom title
 
fris's Avatar
 
Industry Role:
Join Date: Aug 2002
Posts: 54,615
goto cmd prompt and find your ip
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence.


my contact: fris at fris.net
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 07:57 AM   #7
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by fris View Post
goto cmd prompt and find your ip
Thanks.

What do I do with it then?
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 08:06 AM   #8
TisMe
Confirmed User
 
Join Date: Aug 2008
Posts: 1,719
Enter allow from 000.000.000 <- your ip instead of the domain name.
TisMe is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 08:31 AM   #9
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by TisMe View Post
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.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 10:30 AM   #10
Bman
Confirmed User
 
Bman's Avatar
 
Industry Role:
Join Date: Aug 2003
Location: Redirecting your traffic
Posts: 1,679
Maybe there is a third?
__________________
ICQ 228211529
Bman is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 11:10 AM   #11
habibjr
Confirmed User
 
habibjr's Avatar
 
Join Date: Apr 2005
Posts: 342
is there any easy way to block ips by U.S. city or state?
habibjr is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 01:31 PM   #12
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by Bman View Post
Maybe there is a third?
I can't see why there would be.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 01:32 PM   #13
TheDA
Confirmed User
 
Industry Role:
Join Date: May 2006
Posts: 4,665
Quote:
Originally Posted by habibjr View Post
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.
TheDA is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-20-2010, 01:53 PM   #14
rowan
Too lazy to set a custom title
 
Join Date: Mar 2002
Location: Australia
Posts: 17,378
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.
rowan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks

Tags
htaccess, restrict by ip host



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.