.htaccess: Allow from domain.com not working

Discussion in 'Bug Reports' started by gboudreau, Feb 11, 2007.

  1. gboudreau

    gboudreau Member

    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.
  2. mistwang

    mistwang LiteSpeed Staff

    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.
  3. gboudreau

    gboudreau Member

    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.
  4. mistwang

    mistwang LiteSpeed Staff

    If you want you can block a subnet instead of a IP.

Share This Page