How to add website with pwd to fai2ban.local ? help

Discussion in 'Server Operation' started by kadi, Feb 7, 2008.

  1. kadi

    kadi New Member

    Hello
    I hope i am posting in the right section, I copied mr/falko script
    (fail2ban.local) after i installed fail2ban firewall, now i am not much of a
    script writer, i have one site that got a protected directory with
    a password, and i need to add it to this file to protect it from
    hackers .
    Also another question how can i check my hard drive and also how to check how much free space left ?

    Any help will be appreciated.
    Thanks in advance. :)
     
    Last edited: Feb 7, 2008
  2. daveb

    daveb Member

    If I understand you correctly fail2ban is used server wide and not for this site or that site. As for you protected dir's I believe as long as apache is true in jail.local
    Code:
    [apache]
    enabled = true
    port    = http
    filter  = apache-auth
    logpath = /var/log/apache*/*error.log
    maxretry = 5
    then it should catch failed attempts and apply the ban for set number of seconds.
     
  3. kadi

    kadi New Member

    Thanks Daveb

    hello
    Thanks for fast reply.:)
    Sorry to bother you again.
    Yes the fail2ban has apache in and set to true, is that means that any site
    i put is protected even if the site has a login ? so the login is protected
    from hackers? also i have Vhcs2 installed on port 81 and i heard it got some leak , does
    this code for apache will protect Vhcs2 login too ?

    my pther question:
    I am little bit new to linux, and i have debian etch 4, I need to check my
    hard drive space like how much is used and how much free space?
    Thanks again for your help i appreciate it.
     
    Last edited: Feb 7, 2008
  4. falko

    falko Super Moderator ISPConfig Developer

    Run
    Code:
    df -h
    :)
     
  5. kadi

    kadi New Member

    Thanks mr/Falko

    hello
    just to say thanks for your help.
     

Share This Page