Jump to content

[Solved] Robots generating Carts


Recommended Posts

Hola a todos,

 

Yo también tengo el mismo problema entran Carritos de la compra fantasmas y no se que hacer para solucionarlo.

 

¿alguien a encontrado una solución que le funcione?

 

utilizo prestashop 1.5.6.2

-------------------------------------------------------------

 

Hello everyone,
 
I also have the same problem come the ghosts shopping carts and not to do to fix it.
 
Can someone to find a solution that works for you?
 
I use prestashop 1.5.6.2
Link to comment
Share on other sites

  • 2 months later...

si, existe una solución.

 

tendrías que bloquear una IP con el archivo .htaccess

 

 

El archivo .htaccess esta en la parte principal de tu hosting.

 

tienes que editar el archivo y escribir lo siguiente al principio de este archivo:

order allow,deny
deny from 101.78.195.36
deny from 111.118.248.222
allow from all

En este caso tengo en bloque  2 IP.

 

 

Primero tendrás que descubrir cuales son la IP que te atacan y hacen esos carritos abandonados.

y segundo tendrás que añadir las IP al archivo .htaccess

 

 

 

 

Un saludo 

  • Like 1
Link to comment
Share on other sites

  • 4 months later...

I am having same issue on 1.6.14 but my bot is creating everyday something about 500 carts. I would love to ban this bot in htaccess but I want to deny only cart urls for this bot.

Is this possible? Just in case that this bot will be an indexing one.

 

In my case I have bot IP which is 38.99.82.232 and how to block access only for url which contains word "koszyk" (in polish this means a cart). Any help?

Link to comment
Share on other sites

  • 1 month later...
  • 1 year later...
  • 1 year later...
On 9/29/2017 at 2:30 PM, Andrei Gapejev said:

hi All, in my case there were bots coming from different ips. But - from apache logs found they used same token,

so solution was - forwarding all requests to front page with this token inside url query

 

Hope this helps

Can you provide more detail on the solution Andrei? Was it using htaccess or did you do something within Prestashop code to accomplish this?

Thank You!

Link to comment
Share on other sites

  • 2 weeks later...
On 12/31/2018 at 12:24 AM, obewanz said:

Can you provide more detail on the solution Andrei? Was it using htaccess or did you do something within Prestashop code to accomplish this?

Thank You!

Following code in htaccess file blocked requests without proper user agent setting:

# BLOCK BLANK USER AGENTS - POST
RewriteCond %{HTTP_USER_AGENT} ^-?$
RewriteCond %{THE_REQUEST} POST
RewriteRule ^ - [F]

 

Following code in htaccess blocks users without referrer:

# BLOCK UNKNOWN REFERRER - POST
RewriteCond %{QUERY_STRING} controller=contact
RewriteCond %{HTTP_REFERER} !yoursite.com
RewriteCond %{THE_REQUEST} POST
RewriteRule ^ - [F]

 

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...