LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > Bug Reports > .htaccess: Allow from domain.com not working

Reply
 
Thread Tools Display Modes
  #1  
Old 02-11-2007, 08:21 AM
gboudreau gboudreau is offline
Member
 
Join Date: Oct 2006
Location: Montr
Posts: 49
Default .htaccess: Allow from domain.com not working

LiteSpeed/2.2.6 Standard

I'm trying to limit access to a directory based on a domain name instead of using IP addresses.

I'm trying to access the page from 66.130.240.125 (125.240.130.66.in-addr.arpa name = modemcable125.240-130-66.mc.videotron.ca.)

This doesn't work:
Code:
Deny from all
Allow from videotron.ca
Satisfy Any
But this does:
Code:
Deny from all
Allow from 66.130.240.125
Satisfy Any
Any reason why using a domain name would not work in the .htaccess ?
I'm in fact trying to allow googlebot.com access to specific files (for Google Calendar).

Thanks.
__________________
- Guillaume Boudreau
Reply With Quote
  #2  
Old 02-11-2007, 05:45 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
That's as designed, LiteSpeed does not do blocking reverse DNS lookup in our event driven single thread process. We may add non-blocking DNS function in later release. Please use IP for now.
Reply With Quote
  #3  
Old 02-11-2007, 06:48 PM
gboudreau gboudreau is offline
Member
 
Join Date: Oct 2006
Location: Montr
Posts: 49
I would if I could. Google's bots are using a multitude of IP addresses, not just a single one, thus why they use a common domain name so that web server can recognize them.

For now, I'll just create a proxy to Apache2 with that directory and use Apache to serve those files.
__________________
- Guillaume Boudreau
Reply With Quote
  #4  
Old 02-11-2007, 06:59 PM
mistwang mistwang is offline
LiteSpeed Staff
 
Join Date: May 2003
Location: New Jersey
Posts: 7,585
If you want you can block a subnet instead of a IP.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 04:56 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.