You can block visitors from browsing a directory by adding this line to the htaccess file: Options All -Indexes # You can set any page as the homepage by adding the following syntax to the htaccess file in your root directory: DirectoryIndex myfile # If needed, only allow specific IP addresses in certain directories # …