[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
[phpBB Debug] PHP Warning: in file [ROOT]/includes/crs/crs_misc_functions.php on line 37: mime_content_type(): Empty filename or path
Zen Cart 源代码 .htaccess

Zen Cart 源代码 .htaccess




下载文件

文件名: .htaccess
文件类型: Apache HTACCESS文件
文件大小: 2.31 KiB
MD5: 1ba0122eae72938bbdd436f63103dfd8

.htaccess - 关闭高亮
  1. #
  2. # @copyright Copyright 2003-2011 Zen Cart Development Team
  3. # @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
  4. # @version $Id: .htaccess 18695 2011-05-04 05:24:19Z drbyte $
  5. #
  6.  
  7. AuthType Basic
  8. AuthName "No access"
  9. AuthUserFile .htnopasswd
  10. AuthGroupFile /dev/null
  11. #Require valid-user
  12.  
  13.  
  14. ###############################
  15. #
  16. # This is used with Apache WebServers
  17. #
  18. # The following blocks direct HTTP requests to all filetypes in this directory recursively, except certain approved exceptions
  19. # It also prevents the ability of any scripts to run. No type of script, be it PHP, PERL or whatever, can normally be executed if ExecCGI is disabled.
  20. # Will also prevent people from seeing what is in the dir. and any sub-directories
  21. #
  22. # For this to work, you must include either 'All' or at least: 'Limit' and 'Indexes' parameters to the AllowOverride configuration in your apache/conf/httpd.conf file.
  23. # Additionally, if you want the added protection offered by the OPTIONS directive below, you'll need to add 'Options' to the AllowOverride list, if 'All' is not specified.
  24. # Example:
  25. #<Directory "/usr/local/apache/htdocs">
  26. #  AllowOverride Limit Options Indexes
  27. #</Directory>
  28. ###############################
  29.  
  30. # deny *everything*
  31. <FilesMatch ".*">
  32.   Order Allow,Deny
  33.   Deny from all
  34. </FilesMatch>
  35.  
  36. # but now allow just *certain* necessary files:
  37. <FilesMatch ".*\.(zip|ZIP|gzip|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
  38.   Order Allow,Deny
  39.   Allow from all
  40. </FilesMatch>
  41.  
  42. <IfModule mod_headers.c>
  43.   <FilesMatch ".*\.(zip|ZIP|pdf|PDF|mp3|MP3|swf|SWF|wma|WMA|wmv|WMV|wav|epub)$">
  44.     # tell all downloads to automatically be treated as "save as" instead of launching in an application directly
  45.     # ALERT: ForceType requires Apache2 or later. If using older version of Apache, it will need mod_mime installed. Or just comment out the ForceType line below
  46.     # (to disable, just comment the next 2 lines by adding a '#' at the beginning of each):
  47.     ForceType application/octet-stream
  48.     Header set Content-Disposition attachment
  49.   </FilesMatch>
  50. </IfModule>
  51.  
  52. IndexIgnore */*
  53.  
  54.  
  55. ## NOTE: If you want even greater security to prevent hackers from running scripts in this folder, uncomment the following line (if your hosting company will allow you to use OPTIONS):
  56. # OPTIONS -Indexes -ExecCGI
  57.  


cron