Jump to content

thefrenchgame

Recommended Posts

Hello,

I have been receiving for a month 30 fake users per day creating customer account on my prestashop.

I need to delete them manually each time.

Do you know how I can stop these attacks ?

I attach a printscreen of the type of fake customers.

My prestashop is 1.6.1.6.

Thanks in advance.

Capture.JPG

Link to comment
Share on other sites

Hi there,

There are 2 ways to fix this error.

1. Update your shop to the last version

2. Change the PS core:

  • Open file public_html/classes/Customer.php change validate lastname, firstname from name to isCustomerName & save file

287673349_6-27-20192-39-28PM.thumb.jpg.9f3cb291348dec83bd637f519fcafe8a.jpg

  • Open class public_html/classes/Validate.php: Add the new function to validate customer name & save file & go to front end and double test

public static function isCustomerName($name)
    {
        $validityPattern = Tools::cleanNonUnicodeSupport(
            '/^(?:[^0-9!<>,;?=+()\/\\@#"°*`{}_^$%:¤\[\]|\.。]|[\.。](?:\s|$))*$/u'
        );

        return preg_match($validityPattern, $name);
    }

1501034994_6-27-20192-42-32PM.thumb.jpg.a0f7b418bacdecb6e958de7ba4673518.jpg

Hope that helps! :D

Link to comment
Share on other sites

  • 6 months later...

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