hlavina/vava/master/wp-content/plugins/guiform/.htaccess - Htaccess File

hlavina/vava/master/wp-content/plugins/guiform/.htaccess

# compress text, HTML, JavaScript, CSS, and XML
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE image/x-icon 
AddOutputFilterByType DEFLATE image/svg+xml 
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject 
AddOutputFilterByType DEFLATE application/x-font-ttf 
AddOutputFilterByType DEFLATE font/opentype
</IfModule>

## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresDefault "access plus 7 days"
</IfModule>

# Secure PHP files from direct access
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(www.)?([a-z0-9-_.]) [NC] 
RewriteCond %{HTTP_REFERER} !^http://(www.)?([a-z0-9-_.]).*$ [NC] 
RewriteRule ajax|api|config.(php)$ - [F]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTP_REFERER

Comments

Apache