From f4c14ba6fd447e3a94dc15c47d627b9084807827 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 29 Sep 2016 14:09:26 -0400 Subject: [PATCH] update .htaccess for site --- .htaccess | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.htaccess b/.htaccess index 2430cb5..188082b 100644 --- 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\.]+/ -- 2.17.1