Your IP : 216.73.216.229


Current Path : /home/jeromecohp/www/aesecure/setup/snippets/
Upload File :
Current File : /home/jeromecohp/www/aesecure/setup/snippets/43-protect_admin.htaccess

#aeSecure 4.3
<IfModule mod_rewrite.c>
 # Block access to special files of the administrator like xml, gif, ... in order to avoid fingerprints
 # Allowed : yoursite/administror
 RewriteRule ^administrator/?$ - [L]
 # Allowed : yoursite/administror/index.php (or .html)
 RewriteRule ^administrator/index\.(php|html?)$ - [L]
 # Allowed : direct access to one of these urls
 RewriteRule ^administrator\/components\/(com_joomlaupdate|com_akeeba|com_admintools)\/restore\.php$ - [L]
 # Allowed : yoursite/administror/components/... and access to one of these file's extensions
 RewriteRule ^administrator/(components|modules|templates|images|plugins)/([^/]+/)*([^/.]+\.)+(jp(e?g|2)?|png|gif|webp|bmp|css|js|swf|html?|mp(eg?|[34])|avi|wav|og[gv]|flv|mov)$ - [L]
 # Disallowed : the rest
 # Block f.i. http://yoursite/administrator/components/com_admin/admin.xml
 RewriteRule ^administrator/ /%AESECURE_SITEROOT%aesecure/accessdenied.php?s=43 [L]
</IfModule>

 # Deny access to XML files of /administrator
 <Files ~ ".xml$">
  order allow,deny
  deny from all
  satisfy all
 </Files>