Skip to content

Commit

Permalink
1.0.4
Browse files Browse the repository at this point in the history
Add .htaccess in media directory.
  • Loading branch information
conseilgouz committed Apr 14, 2024
1 parent 56fe0ff commit caba61d
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cgwebp.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<license>GNU/GPL</license>
<authorEmail>pascal.leconte@conseilgouz.com</authorEmail>
<authorUrl>https://www.conseilgouz.com</authorUrl>
<version>1.0.3</version>
<version>1.0.4</version>
<description>PLG_SYSTEM_CGWEBP_DESCRIPTION</description>
<namespace path="src">Conseilgouz\Plugin\System\Cgwebp</namespace>
<scriptfile>script.cgwebp.php</scriptfile>
Expand Down
17 changes: 17 additions & 0 deletions media/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# aeSecure
ErrorDocument 403 '<html xmlns="http://www.w3.org/1999/xhtml"><head><style type="text/css" >body{color:#fff;background-color:#851507;font:14px/1.5 Helvetica,Arial,sans-serif};</style><title>Access denied</title></head><body><div style="margin:20px auto;width:700px;padding-top:50px"><h1>Access denied, unauthorized access.<br/><br/>If you think it is an error, please inform the webmaster to help him to adjust his security rules.<br/>Thank you.</h1><pre style="padding:20px;white-space:pre-line;border-radius:10px;background-color:#b34334">Code : 403 - Deny access</pre></div></body></html>'

# Block standard Joomla files that are always installed by default
<FilesMatch "(joomla_black\.gif|joomla_green\.gif|joomla_logo_black\.jpg|powered_by\.png)">
Order Allow,Deny
Deny from all
</FilesMatch>

#Deny access to all CGI, Perl, PHP and Python
<FilesMatch "\.(cgi|php|pl|py|jsp|sh)$">
Deny from all
</FilesMatch>

# secure directory by disabling script execution
AddHandler cgi-script .php .pl .py .jsp .asp .sh .cgi
Options -ExecCGI
12 changes: 12 additions & 0 deletions plg_system_cgwebp_changelog.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
<changelogs>
<changelog>
<element>plg_system_cgwebp</element>
<type>plugin</type>
<group>system</group>
<version>1.0.3</version>
<note>
<item>Update : 14/04/2024</item>
</note>
<fix>
<item>Add .htaccess in media directory.</item>
</fix>
</changelog>
<changelog>
<element>plg_system_cgwebp</element>
<type>plugin</type>
Expand Down

0 comments on commit caba61d

Please sign in to comment.