# WP-SpamShield - "/wp-spamshield/" .htaccess
# File Version 1.9.9.9.4

# Control direct access to certain files.
# Apache 2.2 and 2.4+ compatible

# Disable caching and proxy caching for .txt files
<IfModule mod_headers.c>
	<Files ~ "^(.+)\.txt$">
		Header set Cache-Control "private, no-store, no-cache, must-revalidate, max-age=0, proxy-revalidate, s-maxage=0, no-transform"
		Header set Surrogate-Control "no-cache, must-revalidate, max-age=0"
		Header set Pragma "no-cache"
		Header set Expires "Sat, 26 Jul 1997 05:00:00 GMT"
		Header set Vary "*"
		Header unset Last-Modified
		Header unset ETag
		FileETag None
	</Files>
</IfModule>

# Compress .txt files (gzip)
<IfModule mod_deflate.c>
	<Files ~ "^(.+)\.txt$">
		SetOutputFilter DEFLATE
	</Files>
</IfModule>

# Apache 2.2
<IfModule !mod_authz_core.c>
	Order Allow,Deny
	Allow from all
</IfModule>

# Apache 2.4+
<IfModule mod_authz_core.c>
	Require all granted
</IfModule>

# Using Files instead of FilesMatch for compatibility with certain branches of Apache

# Text and Language Files - Deny
<Files ~ "^(.+)\.(txt|mo|pot)$">
	<IfModule !mod_authz_core.c>
		Deny from all
	</IfModule>
	<IfModule mod_authz_core.c>
		Require all denied
	</IfModule>
</Files>

# jscripts.php and .js - Allow
# Ensure that .htaccess files other plugins place in "/wp-content/" cannot prevent access
<Files ~ "(jscripts\.php|\.js)$">
	<IfModule !mod_authz_core.c>
		Allow from all
	</IfModule>
	<IfModule mod_authz_core.c>
		Require all granted
	</IfModule>
</Files>
