There are two primary components of the Files & Protection tab: the upper half contains the directory structure of the folder Weblock is protecting, and the lower half displays the protection settings for the selected folder in the upper half.
The upper component, the web folder viewer, displays a heierarchical list of all of the folders contained in your chosen web directory. Selecting a folder performs two actions: displays the configured protection options in the lower half of this tab, and reads the file and folder structure from disk for that folder and any contained within it. This replaces the "Refresh" button in previous versions.
Each folder has a menu in the Protection column, allowing you to choose from the supported protection options:
- None: any user can access this folder
- Authentication: users can only log in with a valid username and password
- Location: users must access the webserver from a valid IP address or hostname
- Either: users can access the folder from anywhere with a password, or from a valid IP address or hostname without
- Both: only users with a valid username and password coming from a valid IP address or hostname can access the folder
And finally, in the last column of this view, if there is any access control file configured for that folder,
appears. Clicking
will delete all access control directives and the access control file for that folder.
The lower half contains three more tabs: Authentication, Location, and Manual Editor.
Authentication is straightforward: users are on the left, groups are on the right. The buttons below each section work as follows:
adds a user or group
deletes a user, removes a user from a group, or deletes a group
changes users' passwords
You can drag any user except the first item, "Any Valid User," from the left section to the right section to add a user to a group. The checkboxes to the left of users and groups allow you to indicate whether that user or group is permitted to access the selected folder.
Location is slightly more complex. The checkbox next to entries in the "IP or Hostname" section, as well as the
and
buttons work identically to their counterparts in "Authentication". The only significant difference is that when adding IP addresses or hostnames, partial entries are allowed. For instance, adding "digicowsoftware.com" would allow you to add or block "www.digicowsoftware.com", "downloads.digicowsoftware.com", or even "thisisnotdigicowsoftware.com". Likewise for IP addresses, "192.168.0" would match any address beginning with those digits.
There are two other controls in this tab, which affect its usage. First is the "Allow or Block" control. Choosing "Allow only these addresses" will configure your web folder so that only addresses or address ranges checked in the "IP or Hostname" view will be able to access that folder. Likewise, selecting "Block the addresses" will make it so that everyone except those address ranges can access the folder. The last option in this area is the tricky "Discover Addresses" checkbox. Put simply, this controls whether Weblock requires all addresses to be manually input using the
button (if unchecked) or if it will add any addresses found in access
Manual Editor is the last, and most complex element of the Files & Protection tab. This section is a textual view of the access control file that Weblock edits to implement the protection settings chosen elsewhere. The manual editor allows you to make changes to this file directly, and those changes are immediately reflected in the other areas if applicable. If you make any changes to this text, you'll be prompted to save or revert them before you can view or modify other web folder's protection settings. You can also manually Save your changes or Revert to the unmodified copy of the file using the buttons in the lower right.
Click here for advanced manual editing help