Sorry to go on about this, I just want to get it right.
Leaving all the .htaccess files where they are, I added this bit to the includes/htaccess:
Code:
<Files *.txt>
Order Deny,Allow
Deny from all
</Files>
so this file, is now:
Code:
# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
#
# This is used with Apache WebServers
# The following blocks direct HTTP requests in this directory recursively
#
# For this to work, you must include the parameter 'Limit' to the AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Limit
#
# 'All' with also work. (This configuration is in your apache/conf/httpd.conf file)
#
# This does not affect PHP include/require functions
#
# Example: http://server/catalog/includes/application_top.php will not work
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
#add the following to protect against people finding your spiders.txt version
<Files *.txt>
Order Deny,Allow
Deny from all
</Files>
I have copied this includes/.htaccess file and put it in other root folders like "extras" that contain php scripts, but no .htaccess file.
But, the admin folder has a differenet .htaccess file:
Code:
# $Id: .htaccess 1105 2005-04-04 22:05:35Z birdbrain $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
# AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
# to turn off register_globals
# php_value register_globals 0
Should I supplement the admin/.htaccess file with the following code as well?
Code:
#.htaccess to prevent unauthorized directory browsing or access to .php files
IndexIgnore */*
<Files *.php>
Order Deny,Allow
Deny from all
</Files>
#add the following to protect against people finding your spiders.txt version
<Files *.txt>
Order Deny,Allow
Deny from all
</Files>
or leave alone?