update .htaccess for site
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 29 Sep 2016 18:09:26 +0000 (14:09 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 29 Sep 2016 18:09:26 +0000 (14:09 -0400)
.htaccess

index 2430cb5..188082b 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -16,11 +16,17 @@ AddDefaultCharset utf-8
 
 #RewriteBase /www.gaylordgolfmecca.com/
 
+# Block any .ru or .in referrers BRG 06/07/16
+
+RewriteCond %{HTTP_REFERER} .*\.ru [NC,OR]
+RewriteCond %{HTTP_REFERER} .*\.in 
+RewriteRule .* - [F]
+
+
 # Redirect non-www to www
 RewriteCond %{ENV:GLM_HOST_ID} PRODUCTION
-RewriteCond %{HTTP_HOST} !^www\. [NC]
-RewriteCond %{HTTP_HOST} !^demo\. [NC]
-RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
+RewriteCond %{HTTP_HOST} !^www\.gaylordgolfmecca\. [NC]
+RewriteRule ^(.*)$ http://www.gaylordgolfmecca.com/$1 [R=301,L]
 
 # CacheBusting
 RewriteCond %{REQUEST_URI} v/[0-9\.]+/