[Phphtmllib-devel] nother file
Status: Beta
Brought to you by:
hemna
|
From: Culley H. <cu...@fa...> - 2004-03-08 03:51:17
|
Hey Walt,
So I put together a sample .htaccess file that people could put in in
the phphtmllib directory to tighten things up a bit in a production
environment. I was thinking this file could be named HTACCESS or
SECURITY and put in the root folder of phphtmllib. Here is the
contents:
##########################
#
# $Id$
#
# DESCRIPTION
# These are the apache directives to "lock down" phphtmllib after
installation in
# the web root on your production machine. This doesn't *have* to
happen-- no
# critical information will be displayed if it is not done.
#
# USAGE
# 1. rename this file to .htaccess (for this to work AllowOverride
All needs to be set some-
# where in httpd.conf) You can also place these directives in the
appropriate directory
# block in your httpd.conf file if you have access.
# 2. Delete these directories: test, doc, examples. They are not
needed in production.
#
#
<files *.inc>
Deny from All
</files>
<files ~ "(CHANGELOG|INSTALL|LICENSE|TODO)">
Deny from All
</files>
##########################
Does this sound ok?
Also, I put together a phphtmllib page on my usually neglected wiki:
http://mudhut.org/index.php/PhpHtmlLib
and wrote a short example-- it is really simple but sometimes new
people like to have things spelled out for them :)
culley
|