Deny from all

RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* – [F,L]

<FilesMatch "\.(php|pl|py|jsp|asp|htm|shtml|sh|cgi)$">
	ForceType text/plain
</FilesMatch>

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|mp3|mpg|mp4|mov|wav|wmv|png|gif|swf|xml|txt|bmp|doc|xls|docx)$">
	Allow from All
</FilesMatch>

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|mp3|mpg|mp4|mov|wav|wmv|png|gif|swf|xml|txt|bmp|doc|xls|docx)$">
#ExpiresActive On
#ExpiresDefault A604800
#Header unset ETag
#FileETag None
#Header unset Last-Modified
#Header set Cache-Control "max-age=2592000, public"
</FilesMatch>

Options -ExecCGI -Indexes -IncludesNoExec -All
AddHandler cgi-script .php .php2 .php3 .php4 .php5 .php6 .php7 .php8 .phps .pl .py .jsp .asp .htm .html .xhtm .xhtml .shtml .sh .cgi

#FileETag MTime Size


#SetOutputFilter DEFLATE
 
# Netscape 4.x has some problems...
#BrowserMatch ^Mozilla/4 gzip-only-text/html
 
# Netscape 4.06-4.08 have some more problems
#BrowserMatch ^Mozilla/4\.0[678] no-gzip
 
# MSIE masquerades as Netscape, but it is fine
#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
#SetEnvIfNoCase Request_URI \
#\.(?:gif|jpe?g|png)$ no-gzip dont-vary
 
# Make sure proxies don't deliver the wrong content
#Header append Vary User-Agent env=!dont-vary