cossamus Posted December 18, 2014 Share Posted December 18, 2014 Hello Lately i've been getting alot of traffic from a referral econom.coA quick search on google shows its spam and editing .htaccess could block it: SetEnvIfNoCase Referer econom.co spambot=yes Order allow,deny Allow from all Deny from env=spambot I never edited the .htaccess file before. Is it safe to add this code, do you think its a good solution? Regards. Link to comment Share on other sites More sharing options...
musicmaster Posted December 20, 2014 Share Posted December 20, 2014 It is safe - as long as you don't make syntax mistakes. However, Prestashop uses .htaccess as well when you have enabled pretty url's. Any time you add a new product it may regenerate .htaccess. That would erase your changes. So - unless you haven't enabled pretty url's I wouldn't do it: if you make an error it can break your shop and it will be overwritten anyway when you make changes. Link to comment Share on other sites More sharing options...
simonainti Posted January 5, 2015 Share Posted January 5, 2015 Hello Lately i've been getting alot of traffic from a referral econom.co A quick search on google shows its spam and editing .htaccess could block it: SetEnvIfNoCase Referer econom.co spambot=yes Order allow,deny Allow from all Deny from env=spambot I never edited the .htaccess file before. Is it safe to add this code, do you think its a good solution? Regards. hi, i used this code, but it doesn't work. Read this http://www.analyticsedge.com/2014/12/removing-referral-spam-google-analytics/ Link to comment Share on other sites More sharing options...
Recommended Posts