.htaccess: Allow from domain.com not working

gboudreau

Well-Known Member
#1
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.
 

mistwang

LiteSpeed Staff
#2
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.
 

gboudreau

Well-Known Member
#3
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.
 
Top