Website Restriction

Discussion in 'Installation/Configuration' started by Eliezer Ga, May 14, 2021.

  1. Eliezer Ga

    Eliezer Ga New Member

    Hi Team,

    We would like to restrict the website that we created in ISPconfig to specific IP addresses only. How can we do that? Thank you for your help.
     
  2. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Are you using apache or nginx?
     
  3. Eliezer Ga

    Eliezer Ga New Member

    I am using apache
     
  4. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Go to the settings for the website in ISPConfig, open the Options tab, and put this in the Apache directives:
    Code:
    <Location />
    <RequireAny>
     Require all denied
     Require ip 8.8.8.8
     Require ip 8.8.4.4
    </RequireAny>
    </Location>
    Replace the IP's with your IP's.
     
    ahrasis likes this.
  5. Eliezer Ga

    Eliezer Ga New Member

    Hi Th0m,
    Thank you it works. Thank you for your help
     

Share This Page