forked from web2project/web2project
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.htaccess
52 lines (45 loc) · 1.94 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# The concept for this was taken from the Drupal project by D. Keith Casey Jr. - [email protected]
# PHP 4, Apache 1
<IfModule mod_php4.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value allow_url_fopen 0
php_value session.auto_start 0
php_value max_execution_time 120
php_value zlib.output_compression 0
</IfModule>
# PHP 4, Apache 2
<IfModule sapi_apache2.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value allow_url_fopen 0
php_value session.auto_start 0
php_value max_execution_time 120
php_value zlib.output_compression 0
</IfModule>
# PHP 5, Apache 1 and 2
<IfModule mod_php5.c>
php_value magic_quotes_gpc 0
php_value register_globals 0
php_value allow_url_fopen 0
php_value session.auto_start 0
php_value max_execution_time 120
php_value zlib.output_compression 0
</IfModule>
# Protect files and directories from prying eyes:
# - These limitations were put in place specifically to combat further security issues in addition to completely
# close out previous issues. In order to install some modules - such as the Task Tracker for the Yahoo Widget Engine-
# have to be manually added to the second FileMatch block in order to allow for external access.
<FilesMatch "(\.(classes|db|files|functions|includes|lib|locales|misc|modules|theme|CVS|.svn)|Entries.*|Repository|Root|(php)|(sql))$">
Order deny,allow
Deny from all
</FilesMatch>
<FilesMatch "(index.php|calendar.php|queuescanner.php|fileviewer.php|updatecontact.php|do_updatecontact.php|newuser.php|createuser.php|do_user_aed.php|CaptchaImage.php|pdf)$">
Order deny,allow
Allow from all
</FilesMatch>
# Set some options.
Options -Indexes
Options +FollowSymLinks
# Set the default handler.
DirectoryIndex index.php