Setup

Thank you for using the Web File Viewer.

This is the default page you should see when you are installing Web File Viewer. To activate Web File Viewer, you must change the option "setupmode" to "false" in the index.php file. Below is a set of instructions that will help you customize how the software is set up on your web site.

  1. Edit your settings: You can edit certain settings directly in index.php so that Web File Viewer works exactly the way you want it to. Open index.php in notepad and review the options at the top of the page. There is a description next to each setting.
     
  2. Security: The most important option at the top of index.php is the "password" option. If you would like simple password protection, enter a password that your users will need to enter to view the files. If you want to disable passwords, leave the password option blank.
     
  3. Save: After editing the options, save the file and upload it to your web server. Upload index.php into directories that you would like your users to be able to browse.  
Note: If you need to review these instructions again, change the option "setupmode" to "true" at the top of index.php and refresh this page.
 
 
Advanced Security

How to use .htaccess to make sure your files are secure.

The simple password protection feature built into Web File Viewer will prevent unauthorized users from browsing the files on your site. However, if users know the name of a file on your server, they could potentially view the file by typing in the path to the file in the address bar.

One solution to this problem is to use an .htaccess file and an .htpasswd file to restrict access to folders on your server. This section describes how to use this method to secure the files on your server. If you use this method, leave the password option blank in index.php

Step 1. Create an .htpasswd file that contains all of the users who should have access to the system. To automatically generate the encrypted password file, enter the users and passwords below:


 
Username: Password:

   

Save the .htpasswd file and upload it to your server in the root directory (where people who view your website CANNOT access). Note the location of this file because you will need to enter the path to this file in the .htaccess file you create below.

Step 2. Create an .htaccess file for the directory you want to secure:


 

Download the .htaccess file and edit it in notepad. Make sure that the path to your .htpasswd file is correct, then upload it to the same directory as index.php.

NOTE: Please double check that the file names are correct. You will need to rename the files to ".htpasswd" and ".htaccess" after you have uploaded them.