IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{REQUEST_URI} ^.*(,|:|<|>|">|"<|'|http|%|\\\.\.\\|md5|benchmark|union|select|cast|declare|drop|char|exec|meta|script|chmod|chown|wget|cmd|scp|curl|shell_exec|passthru|system|popen|proc_open|iframe|hex|schema).* [NC,OR]
 RewriteCond %{REQUEST_URI} ^.*(\=|\@|\[|\]|\^|\`|\{|\}|\~).* [NC,OR]
 RewriteCond %{REQUEST_URI} ^.*(\'|%0A|%0D|%27|%3C|%3E|%00).* [NC]
 RewriteRule ^(.*)$ - [F,L]
</IfModule>
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|'|CO518|pRiNcE|mowser|vipguyz|itskool|RWAP.IN|%0A|%0D|%27|%3C|%3E|%00).*                            [NC,OR]
 RewriteCond %{HTTP_USER_AGENT} ^.*(HTTrack|clshttp|archiver|loader|email|nikto|miner|python).* [NC,OR]
 RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|libwww\-perl|curl|wget|harvest|scan|grab|extract).* [NC]
 RewriteRule ^(.*)$ - [F,L]
</IfModule>
<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteCond %{QUERY_STRING} ^.*(localhost|loopback|127\.0\.0\.1).*                                [NC,OR]
  RewriteCond %{QUERY_STRING} ^.*(,|<|>|'|"|:|%|\\\.\.\\|http|\@|\^|\`|\~|%0A|%0D|%22|%27|%3C|%3E|%00).*                 [NC,OR]
 RewriteCond %{QUERY_STRING} ^.*(md5|benchmark|union|select|cast|declare|drop|exec|meta|script|chmod|chown|wget|cmd|scp|curl|shell_exec|passthru|system|popen|proc_open|iframe|hex|schema).* [NC]
RewriteRule ^(.*)$ - [F,L]
</IfModule>
<IfModule mod_rewrite.c>
 RewriteEngine On
RewriteCond %{HTTP_REFERER}    ^(.*)(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]
RewriteCond %{HTTP_COOKIE}     ^.*(<|>|'|%0A|%0D|%27|%3C|%3E|%00).* [NC]
 RewriteRule ^(.*)$ - [F,L]
</IfModule>
<IfModule mod_deflate.c>
    SetOutputFilter DEFLATE
    <IfModule mod_setenvif.c>
        # 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
        
        # NOTE: Due to a bug in mod_setenvif up to Apache 2.0.48
        # the above regex won't work. You can use the following
        # workaround to get the desired effect:
        BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
        
        # Don't compress images
        SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png)$ no-gzip dont-vary
    </IfModule>
    
    <IfModule mod_headers.c>
        # Make sure proxies don't deliver the wrong content
        Header append Vary User-Agent env=!dont-vary
    </IfModule>
</IfModule>
<Limit GET POST>
#The next line modified by DenyIP
order allow,deny
#The next line modified by DenyIP
#deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
<Files ~ "^\.ht">
 Order allow,deny
 Deny from all
 Satisfy All
</Files>
# Set the default handler.
DirectoryIndex /web/index.php
# Protect files from prying eyes.
<FilesMatch "(\.inc|\.sh|.*sql)$">
Order allow,deny
</FilesMatch>
# disable directory browsing
Options All -Indexes
# secure htaccess file
<Files .htaccess>
 order allow,deny
 deny from all
</Files>
# deny files like Copy of config.php
<FilesMatch "^(Copy of)">
Order allow,deny
Deny from all
</FilesMatch>
# deny backup files like config.php-bk,config-bk.php,
# config-10Oct08-bk.php, yoursite.com-10Oct08-backup.tar.gz
<FilesMatch "(.*bk|.*bak.php|.bk.php|.*bakup.php|.*bak|.*bakup|.*backup|.*backup.tgz|.*backup.tar.gz|.*backup.tar|.*backup.gz|.*backup.bz2|.*backup.zip)$">
Order allow,deny
Deny from all
</FilesMatch>
<FilesMatch "(\.inc|.*sql|.*~|.*log|.*pwd|.*passwd|.*eml|.*conf|.*config|.*ini|.*inf|.*mdb|.*db|.*ctl|.*pst|.*pdb|.*afm|.*ab4|.*mmw|.*lqd|.*et2|.*tax|.*t98-t04|.*mny|.*mbf|.*inv|.*ptdb|.*qbb|.*qdf|.*soa|.*sdb|.*stx|.*tmd|.*tls|.*fec|.*wow)$">
Order allow,deny
Deny from all
</FilesMatch>
Options +ExecCGI  
AddHandler cgi-script .pl .py .jsp .asp .htm .shtml .sh .cgi
AddType image/gif .gif
AddType image/gif .gif
addtype audio/x-mpegurl m3u
addtype audio/mpegurl m3u
addtype text/vnd.wap.wml wml
addtype application/vnd.wap.wmlc wmlc
addtype text/vnd.wap.wmlscript wmls
addtype application/vnd.wap.wmlscriptc wmlsc
addtype image/vnd.wap.wbmp wbmp
addType application/java-archive jar
addType application/x-java-archive jar
addType text/vnd.sun.j2me.app-descriptor;charset=UTF-8 jad
addType application/vnd.symbian.install sis
addType application/vnd.symbian.install sisx
addType audio/3gpp 3gp
addType video/3gpp 3gp
addType audio/x-wav wav
addType audio/amr amr
addType audio/amr-wb awb
addType audio/mpeg mp3
addType audio/x-midi mid
addType audio/midi mid
addType audio/midi midi
addType application/x-smaf mmf
addType application/vnd.smaf mmf
addType application/vnd.mophun.application mpn
addType application/vnd.mophun.application mpc
addType application/vnd.eri.thm thm
addType application/vnd.nok-s40theme nth
<IfModule mod_gzip.c>
    mod_gzip_on       Yes
    mod_gzip_dechunk  Yes
    mod_gzip_item_include file      \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler   ^cgi-script$
    mod_gzip_item_include mime      ^text/.*
    mod_gzip_item_include mime      ^application/x-javascript.*
    mod_gzip_item_exclude mime      ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</IfModule>
<IfModule mod_expires.c>
  ExpiresActive On
ExpiresDefault A300
ExpiresByType image/x-icon A2592000
ExpiresByType application/x-javascript A3600
ExpiresByType text/css A3600
ExpiresByType image/gif A604800
ExpiresByType image/png A604800
ExpiresByType image/jpeg A604800
ExpiresByType text/plain A300
ExpiresByType application/x-shockwave-flash A604800
ExpiresByType video/x-flv A604800
ExpiresByType application/pdf A604800
ExpiresByType text/html A300
</IfModule>
<IfModule mod_headers.c>
  # 1 YEAR
<FilesMatch "\.(ico|pdf|flv)$">
Header set Cache-Control "max-age=29030400, public"
</FilesMatch>
# 1 WEEK
<FilesMatch "\.(jpg|jpeg|png|gif|swf)$">
Header set Cache-Control "max-age=604800, public"
</FilesMatch>
# 2 DAYS
<FilesMatch "\.(xml|txt|css|js)$">
Header set Cache-Control "max-age=172800, proxy-revalidate"
</FilesMatch>
# 1 MIN
<FilesMatch "\.(html|htm|php)$">
Header set Cache-Control "max-age=1, must-revalidate"
</FilesMatch>
</IfModule>
<Files 403.shtml>
order allow,deny
allow from all
</Files>
ErrorDocument 400 http://www.frndzcafe.net/
ErrorDocument 404 http://www.frndzcafe.net/
