Block certain incoming ip's

Discussion in 'General' started by Martin1982, Feb 27, 2006.

  1. Martin1982

    Martin1982 New Member

    Is it possible to block certain incoming ip's on certain websites?
     
  2. badben

    badben New Member

  3. Martin1982

    Martin1982 New Member

    I just tried to put a line

    Deny from 192.168.1.33 in the Directive block at the bottom in ISPconfig of a test-site.
    When I hit save and opened the site properties again my line was changed to:
    #Deny from 192.168.1.33 #NOT SUPPORTED

    Am I doing something wrong?
     
  4. badben

    badben New Member

    You may have to install the apache module 'mod_authz_host' onto apache.
     
  5. rayit

    rayit Member

    maybe use .htaccess

    Not the best solution, but sometimes usefull?

    make a file .htaccess in your web directory

    --------------------------------------------------
    <Limit GET>
    order deny,allow
    deny from {addresses}
    </Limit>
    ------------------------------

    example:

    <Limit GET>
    order deny,allow
    deny from 155.212. 199.171.167. .aol.com 207.51.72.139 grog.ric.edu
    </Limit>

    RayIT
     

Share This Page