
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
	# WP Maximum Execution Time Exceeded
	<IfModule mod_php5.c>
	php_value max_execution_time 300
	
    php_value upload_max_filesize 250M
	php_value post_max_size 250M
	php_value max_input_time 300

	</IfModule>
# BEGIN wccp_image_protection
# END wccp_image_protection

# BEGIN wccp_pro_image_protection
	<IfModule mod_rewrite.c>
	RewriteEngine on
	RewriteCond %{HTTP_USER_AGENT} (PrintFriendly.com)
	RewriteRule ^.*$ http://www.solarray.nl/wp-content/plugins/wccp-pro/watermark.php [R=301,L]
	
	RewriteCond %{QUERY_STRING} (wccp_pro_watermark_pass) [NC,OR]
	RewriteCond %{REQUEST_URI} (wp-content/plugins) [NC,OR]
	RewriteCond %{REQUEST_URI} (logo) [NC,OR]
	RewriteCond %{REQUEST_URI} (featured-listing-bg.png) [NC,OR]
	RewriteCond %{REQUEST_URI} (wp-content/themes) [NC]

	RewriteRule ^.*$ - [NC,L]
	
	# What happen to images on my site
	#RewriteCond %{HTTP_ACCEPT} (image|png) [NC]
	RewriteCond %{HTTP_REFERER} ^http(s)?://(www\.)?solarray.nl [NC,OR]
	RewriteCond %{HTTP_REFERER} ^(.*)solarray.nl [NC]
	RewriteRule ^.*$ - [NC,L]
	
	#Save as or Click on View image after right click or without any referer
	RewriteCond %{HTTP_ACCEPT} (text|html|application) [NC]
	RewriteRule ^.*$ - [NC,L]
	
	RewriteCond %{REQUEST_URI} \.(jpg|jpeg|png)$ [NC]
	RewriteCond %{REMOTE_ADDR} !^(127.0.0.1|162.144.5.62)$ [NC]
	RewriteCond %{REMOTE_ADDR} !^66.6.(32|33|36|44|45|46|40). [NC]
	RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?(www.solarray.nl|solarray.nl|pinterest.com|tumblr.com|facebook.com|plus.google|twitter.com|googleapis.com|googleusercontent.com|ytimg.com|gstatic.com) [NC]
	RewriteCond %{HTTP_USER_AGENT} !(googlebot|msnbot|baiduspider|slurp|webcrawler|teoma|photon|facebookexternalhit|facebookplatform|pinterest|feedfetcher|ggpht) [NC]
	RewriteCond %{HTTP_USER_AGENT} !(photon|smush.it|akamai|cloudfront|netdna|bitgravity|maxcdn|edgecast|limelight|tineye) [NC]
	RewriteCond %{HTTP_USER_AGENT} !(developers|gstatic|googleapis|googleusercontent|google|ytimg) [NC]
	RewriteRule ^.*$ - [NC,L]
	
</ifModule>
# END wccp_pro_image_protection


# Wordfence WAF
<IfModule LiteSpeed>
php_value auto_prepend_file '/home/solarray/domains/solarray.nl/public_html/wordfence-waf.php'
</IfModule>
<IfModule lsapi_module>
php_value auto_prepend_file '/home/solarray/domains/solarray.nl/public_html/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
	Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
	Order deny,allow
	Deny from all
</IfModule>
</Files>

# END Wordfence WAF
