Jump to content

Block econom.co referral spam


Recommended Posts

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.

 

Link to comment
Share on other sites

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

  • 3 weeks later...

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

×
×
  • Create New...