-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
30 changed files
with
618 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,63 @@ | ||
# | ||
# Monstra :: php & apache settings | ||
# This file is part of the Monstra. | ||
# | ||
# (c) Romanenko Sergey / Awilum <awilum@msn.com> | ||
# | ||
# For the full copyright and license information, please view the LICENSE | ||
# file that was distributed with this source code. | ||
# | ||
|
||
# Set default charset utf-8 | ||
AddDefaultCharset UTF-8 | ||
|
||
# Don't show directory listings for URLs which map to a directory. | ||
Options -Indexes | ||
|
||
# PHP 5, Apache 1 and 2. | ||
<IfModule mod_php5.c> | ||
php_flag magic_quotes_gpc off | ||
php_flag magic_quotes_sybase off | ||
php_flag register_globals off | ||
</IfModule> | ||
|
||
|
||
# Setting rewrite rules. | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine on | ||
|
||
# Update code bellow for SEO improvements | ||
# RewriteCond %{HTTP_HOST} ^www.example.org [NC] | ||
# RewriteRule ^(.*)$ http://example.org/$1 [R=301,L] | ||
|
||
## Begin - Rewrite rules to block out some common exploits. | ||
# If you experience problems on your site block out the operations listed below | ||
# This attempts to block the most common type of exploit `attempts` to Monstra | ||
# | ||
# Block out any script trying to base64_encode data within the URL. | ||
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR] | ||
# Block out any script that includes a <script> tag in URL. | ||
RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR] | ||
# Block out any script trying to set a PHP GLOBALS variable via URL. | ||
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR] | ||
# Block out any script trying to modify a _REQUEST variable via URL. | ||
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) | ||
# Return 403 Forbidden header and show the content of the root homepage | ||
RewriteRule .* index.php [F] | ||
# | ||
## End - Rewrite rules to block out some common exploits. | ||
|
||
## Begin - Rewrite rules for Monstra | ||
RewriteBase /%siteurlhere%/ | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php [QSA,L] | ||
## End - Rewrite rules for Monstra | ||
|
||
## Begin - Rewrite rules for SEO improvements. | ||
# RewriteCond %{HTTP_HOST} ^www.example.org [NC] | ||
# RewriteRule ^(.*)$ http://example.org/$1 [R=301,L] | ||
# Redirect 301 /index http://example.org/ | ||
## End - Rewrite rules for SEO improvements. | ||
|
||
# Update code bellow for SEO improvements | ||
# Redirect 301 /home http://example.org/ | ||
</IfModule> | ||
|
||
# Prevent visitors from viewing files directly. | ||
<FilesMatch "(^#.*#|\.(md|txt|html|tpl|yml|yaml)|~)$"> | ||
Order allow,deny | ||
Deny from all | ||
Satisfy All | ||
</FilesMatch> | ||
|
||
# Don't show directory listings for URLs which map to a directory. | ||
Options -Indexes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ class Monstra | |
/** | ||
* The version of Monstra | ||
*/ | ||
const VERSION = '3.0.2'; | ||
const VERSION = '3.0.3'; | ||
|
||
|
||
/** | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.