Results 1 to 2 of 2

Thread: Can you only let certain ip addresses to a certain site?

  1. #1
    Join Date
    Jun 2008
    Location
    SATA1 block 3054 sector 4
    Beans
    466
    Distro
    Ubuntu 8.04 Hardy Heron

    Can you only let certain ip addresses to a certain site?

    For instance, If I wanted to only allow the ip 192.168.1.144 to www.example.com/restricted.

    How would I go about doing this? I'm using apache2. My site is http://www.winrid.co.nr. My other site, which I'm working on, is http://www.thelinuxhowto.co.nr

    Thanks for your time.

  2. #2
    Join Date
    Mar 2006
    Location
    utah
    Beans
    12
    Distro
    The Feisty Fawn Testing

    Re: Can you only let certain ip addresses to a certain site?

    This is possible by adding a directive like this to your VirtualHost config:

    <Location /restricted>
    Order Allow,Deny
    Allow from 192.168.1.144
    Deny from all
    </Location>

    For more information, see:

    http://httpd.apache.org/docs/2.2/mod...uthz_host.html

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •