# This is a sample .htaccess file to protect your Fontlinge WebGUI
# against abuse.
#
# Please edit this file to suit your needs.
# All entries that have an active "require valid-user" or
# "require user xyz" line will be password-protected.
#
# Also create a .htpasswd file with the 'htpasswd' command.
#
# To make these restrictions working, make sure that (at least)
#     AllowOverride AuthConfig Limit
# is set for this directory in your httpd.conf.
#
# If your Admin has only set the
#     AllowOverride AuthConfig
# option, use a trick: replace all the "Deny from all" lines with
# "require user devnull" or any other user that is NOT in your
# .htpasswd file.

AuthType Basic
AuthName "Fontlinge WebGUI"

### .htpasswd password file
### Set this to the path and filename of your .htpasswd file.
AuthUserFile /home/cb/public_html/.htpasswd

### activate the following line to protect the whole WebGUI directory
# require valid-user


### downloading fonts
<files download.php>
	# require valid-user
</files>

### sorting fonts into categories
<files set.php>
	# require valid-user
</files>

### fontinfo page
<files fontinfo.php>
	# require valid-user
</files>

### detail preview (two files, so change both ;-)
<files preview.php>
	# require valid-user
</files>
<files preview_img.php>
	# require valid-user
</files>


##################################################
# Please do not change any of the entries below! #
#                                                #
# (except if your admin doesn't set              #
#     AllowOverride Limit                        #
# for your Fontlinge WebGUI directory)           #
##################################################

### files that may never be downloaded.

<files .fontlinge>
	Deny from all
	# or (if AllowOverride Limit is not set):
	# require user devnull
</files>
<files .ht*>
	Deny from all
</files>
<files _get_config.php>
	Deny from all
</files>
<files custom.php>
	Deny from all
</files>
<files fontinfo_tags.php>
	Deny from all
</files>
<files preview.pl>
	Deny from all
</files>
<files functions.php>
	Deny from all
</files>
