##################################################################
#
# @package : Joomla / QuatuorA / www.quatuora.nl
# @copyright : Copyright (C) 2020 Open Source Matters. All rights reserved.
# @license GNU : General Public License version 2 or later; see LICENSE.txt
#
# @modification : 23-12-2020
# @site : joomla4all.nl/portal/quatuora
#
#### Read this completely if you choose to use this file!
#
# The line 'Options +FollowSymLinks' may cause problems with some server configurations.
# It is required for the use of mod_rewrite, but it may have already been set by your server administrator in a way that disallows changing it in this .htaccess file.
# If using it causes your site to produce an error, comment it out (add # to the beginning of the line), reload your site in your browser and test your sef urls. If
# they work, then it has been set by your server administrator and you do not need to set it here.
# Options +FollowSymlinks
Options -Indexes
#
#### Mod_Rewrite In Use.
RewriteEngine On
#
#### ErrorDocument
ErrorDocument 400 /../error/index.php
ErrorDocument 401 /../error/index.php
ErrorDocument 403 /../error/index.php
ErrorDocument 404 /../error/index.php
ErrorDocument 500 /../error/index.php
#
#### Additional XSS protection for the usage of SVG files
Header always set Content-Security-Policy "script-src 'none'"
#
#### Suppress mime type detection in browsers for unknown types
Header always set X-Content-Type-Options "nosniff"
#
#### Referrer-policy / (remove if no admin access)
#$
#$ Header always set Referrer-Policy ""
#$
#
# Allow access from all domains for webfonts.
# Alternatively you could only whitelist your
# subdomains like "subdomain.example.com".
Header set Access-Control-Allow-Origin "*"
#
#### No Directory Listings
IndexIgnore *
#
#### Prevent someone from reading .htaccess file
order allow,deny
deny from all
satisfy all
#
#### Begin - REWRITE rules to block out some common exploits.
# If you experience problems on your site then comment out the operations listed below by adding a # to the beginning of the line.
# This attempts to block the most common type of exploit `attempts` on Joomla!
#
## Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
## proc/self/environ blocked this is what attacked your site
RewriteCond %{QUERY_STRING} proc/self/environ [OR]
## Block any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
## Block any script that includes a