RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
##################################################################################################
#
# aeSecure v2.1 (c) AVONTURE Christophe (http://www.aesecure.com/)
#
# !!! ---------------------------------------------------------------------------------------- !!!
# !!! DON'T MODIFIY THIS FILE MANUALLY.   IF YOU NEED TO ADD RULES IN IT, JUST USE YOUR        !!!
# !!! http://yoursite/aesecure/setup.php?YOUR_LONG_KEY PAGE INTERFACE AND GO TO OPTION 1.4     !!!
# !!! "Manual edit of your .htaccess"                                                          !!!
# !!! ---------------------------------------------------------------------------------------- !!!
#
# If the .htaccess file isn't working at all, check in your httpd.conf server file that
# AllowOverride variable is not set on None and in that case change the settings to All
#
# So change "AllowOveridde None" to "AllowOverride All" (without double-quote).  Restart then the Apache server.
#
##################################################################################################
#aeSecure 1.1
#AESECURE_BLOCKUSERAGENT_START
#aeSecure 2.8
 RewriteEngine On
 # Block based on the user-Agent.  Show a 403 page - access denied
 RewriteCond %{HTTP_USER_AGENT} ".*(AhrefsBot|base64_decode|BOT for JCE|BOT/0.1 (BOT for JCE)|Cliqzbot|dotbot|javascript|JDatabaseDriver|JFactory|Lipperhey SEO Service|Mail\.RU_Bot|MJ12bot|niki-?bot|OrangeBot|phpinfo|SeznamBot|Sogou).*" [NC]
 RewriteRule .* - [F]
#AESECURE_BLOCKUSERAGENT_END
#AESECURE_BLOCKIP_START
#AESECURE_BLOCKIP_END
#AESECURE_BLOCKPARTURL_START
#aeSecure 1.6
 # These lines have been added by the option 1.6 of aeSecure.  Use the interface if you need to modify part of the rules
 RewriteEngine On
 RewriteCond %{REQUEST_URI} .*\.php\.(gif|jpe?g|png).* [NC,OR]
RewriteCond %{REQUEST_URI} .*(php-ofc-library|streaming|uploadify).* [NC,OR]
RewriteCond %{REQUEST_URI} .*(/(openflash|tmp-upload-images)/).*$ [NC,OR]
RewriteCond %{REQUEST_URI} .*(/(cache|components|images|logs|modules|plugins)/[^/]+\.php(\?*)).*$ [NC,OR]
RewriteCond %{QUERY_STRING} .*(task=upload).*$ [NC,OR]
RewriteCond %{QUERY_STRING} .*(\+Result:).*$ [NC,OR]
RewriteCond %{QUERY_STRING} (baca|rf)$ [NC,OR]
RewriteCond %{QUERY_STRING} cmd=wget [NC,OR]
RewriteCond %{QUERY_STRING} .*(dallow_url_include|FileUpload).* [NC,OR]
RewriteCond %{QUERY_STRING} \.php\.(gif|jpe?g|png).* [NC]
 RewriteRule .* /aesecure/accessdenied.php?s=426 [L]
#AESECURE_BLOCKPARTURL_END
#AESECURE_BLOCKREFERRER_START
#aeSecure 2.9
 RewriteEngine On
 # Protection : don't allow the user to block his own server
 RewriteCond %{REMOTE_ADDR} !127.0.0.1
 RewriteCond %{REMOTE_ADDR} !178.33.103.143
 RewriteCond %{HTTP_REFERER} !ccijf.asso.fr
 RewriteCond %{HTTP_REFERER} 4webmasters\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} 76brighton\.co\.uk [NC,OR]
 RewriteCond %{HTTP_REFERER} 7makemoneyonline\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} adcash\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} adviceforum\.info [NC,OR]
 RewriteCond %{HTTP_REFERER} anonym\.to [NC,OR]
 RewriteCond %{HTTP_REFERER} anticrawler\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} antonym\.to [NC,OR]
 RewriteCond %{HTTP_REFERER} Best-seo-offer\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} best-seo-solution\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} blackhatworth\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} Blackhatworth\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} buttons-for-website\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} buttons-for-website\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} Buttons-for-your-website\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} cenokos\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} cenoval\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} cityadspix\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} cyprusbuyproperties\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} darodar\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} darodar\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} descargar-musica-gratis\.net [NC,OR]
 RewriteCond %{HTTP_REFERER} econom\.co [NC,OR]
 RewriteCond %{HTTP_REFERER} econom\.co [NC,OR]
 RewriteCond %{HTTP_REFERER} edakgfvwql\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} forum\.topic44637676\.darodar\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} forum\.topic52548358\.darodar\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} forum\.topic53813291\.darodar\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} forum20\.smailik\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} get-free-traffic-now\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} gobongo\.info [NC,OR]
 RewriteCond %{HTTP_REFERER} googlsucks\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} hulfingtonpost\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} humanorightswatch\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} iedit\.ilovevitaly\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} iloveitaly\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} ilovevitaly\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} ilovevitaly\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} iskalko\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} kambasoft\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} Lomb\.co [NC,OR]
 RewriteCond %{HTTP_REFERER} Lombia\.co [NC,OR]
 RewriteCond %{HTTP_REFERER} luxup\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} make-money-online\.7makemoneyonline\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} myftpupload\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} offers\.bycontext\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} o-o-6-o-o\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} paparazzistudios\.com\.au [NC,OR]
 RewriteCond %{HTTP_REFERER} pornhub-forum\.uni\.me [NC,OR]
 RewriteCond %{HTTP_REFERER} powitania\.pl [NC,OR]
 RewriteCond %{HTTP_REFERER} priceg\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} prodvigator\.ua [NC,OR]
 RewriteCond %{HTTP_REFERER} ranksonic\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} resellerclub\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} s\.click\.aliexpress\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} savetubevideo\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} saveyoutubevideo\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} screentoolkit\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} semalt\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} semalt\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} semalt\.semalt\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} seoexperimenty\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} sharebutton\.net [NC,OR]
 RewriteCond %{HTTP_REFERER} sharebutton\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} shopping\.ilovevitaly\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} simple-share-buttons\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} site12\.social-buttons\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} slftsdybbg\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} social-buttons\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} socialseet\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} superiends\.org [NC,OR]
 RewriteCond %{HTTP_REFERER} tasteidea\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} torontoplumbinggroup\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} vodkoved\.ru [NC,OR]
 RewriteCond %{HTTP_REFERER} websocial\.me [NC,OR]
 RewriteCond %{HTTP_REFERER} www\.majestic12\.co\.uk [NC,OR]
 RewriteCond %{HTTP_REFERER} www1\.social-buttons\.com [NC,OR]
 RewriteCond %{HTTP_REFERER} ykecwqlixx\.ru [NC]
 RewriteCond %{REQUEST_FILENAME} !accessdenied\.php [NC]  
 RewriteRule .* /aesecure/accessdenied.php?s=587 [L]
#AESECURE_BLOCKREFERRER_END
# Define the 403 - Access denied page
ErrorDocument 403 '
Access denied
Access denied, unauthorized access.
If you think it\'s an error, please inform the webmaster to help him to adjust his security rules.  Thank you.
Code : 403 - Deny access