Jump to content

How To Prevent Bots And Crawlers To Show Up As A Visitor In Stat ?


Recommended Posts

  • 5 months later...

By blocking bad bots in your .htaccess

 

Here's a list of 'bad' user agents: https://github.com/bluedragonz/bad-bot-blocker/blob/master/.htaccess

 

Make sure you place it outside of the part that's automatically generated by PrestaShop.

 

Very useful your response, thank you. :)

I wonder where i must put my new .htaccess for this purpose. Can i have a new folder "bots" with my .htaccess file to avoid Prestashop override ?

Edited by javgoji (see edit history)
Link to comment
Share on other sites

  • 7 years later...

I have exactly the same question, but the answer given here is not satisfactory, because we must not block robots or crawlers otherwise we will lose the SEO

I searched for the part of the code that records visits in the ps_connections table in the database to exclude robots in this record, but with a lot of research, it remains untraceable.
Anybody know the solution?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...