Restricting Access To User UI Based On IP Addresses

Introduction

Administrators might like to restrict access to user web UI only for intranet IP addresses. If this is the case, please follow these steps to restrict user UI access to certain IP addresses.

Steps

  1. Stop Apache Server.
  2. Edit the following file, based on the OS on which FileCloud server is installed (adjust these paths for your environment). 

    Operating SystemTypical Configuration File Location
    WindowsC:\xampp\apache\conf\httpd.conf
    Linux/etc/apache2/sites-enabled/000-default.conf
  3. Add the following lines to the configuration. In Windows, lines can be added to the end of the file. On Linux, lines needs to be added inside the VirtualHost configuration.
          <Location /ui/core>
                    Order deny,allow
                    deny from all
                    allow from 192.168.
                    allow from 33.201.24.69
          </Location>
  4. Restart apache, after making this change. Now admin UI will be accessible only from subnet 192.168.x.x and IP 33.201.24.69.

Add the following lines to the configuration. In Windows, lines can be added to the end of the file. On Linux, lines needs to be added inside the VirtualHost configuration for blocking client apps also

      <Location />
                Order deny,allow
                deny from all
                allow from 192.168.
                allow from 33.201.24.69
      </Location>
Restart apache, after making this change. Now filecloud will be accessible only from subnet 192.168.x.x and IP 33.201.24.69