{"id":15685329,"url":"https://github.com/genaker/spamusersfilter","last_synced_at":"2025-08-20T22:40:22.747Z","repository":{"id":99663333,"uuid":"230510871","full_name":"Genaker/SpamUsersFilter","owner":"Genaker","description":"Adds fields limitation rules for Customer attributes. By default it is 256 and spammers can send spam messages also it checks if  attribute has URLs.","archived":false,"fork":false,"pushed_at":"2020-02-11T22:56:48.000Z","size":7,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-02T01:39:57.954Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Genaker.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-12-27T20:05:35.000Z","updated_at":"2024-07-29T19:49:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"6ad7d501-94cc-4791-ad92-09d1c39af8cb","html_url":"https://github.com/Genaker/SpamUsersFilter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FSpamUsersFilter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FSpamUsersFilter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FSpamUsersFilter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Genaker%2FSpamUsersFilter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Genaker","download_url":"https://codeload.github.com/Genaker/SpamUsersFilter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252921953,"owners_count":21825632,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T17:24:51.098Z","updated_at":"2025-05-07T16:55:20.472Z","avatar_url":"https://github.com/Genaker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpamUsersFilter\nAdds fields limitation rules for Customer attributes. By default it is 256 and spammers can send spam messages also it checks if  attribute has URLs.\n\nBots automatically create customer accounts, but the email addresses used are not wrong. In recent cases, there were mostly e-mail accounts from @ mail.ru, @ gmail.ru, @inbox.ru, @ Bk.ru, @ List.ru, @ qq.com and other Russian mail hosting. Generally, there probably most of the mail addresses and thus available after login in the respective shop a confirmation email from that = it therefore be true emails from a real shop (-sender) sent to real people. That would be so intent 1. Now the question “Why? It's just a normal sign-up confirmation email…”. Ja, BUT it is the bots use for their “advertising message” the customer name. Main idea of the spammers to use yours email server to send spam emails.\n\nSpam registrations are a result of bots all over the internet, trying to exploit your store and harm your business. The fake signup process uses the fake email address or the real Email IDs without the knowledge of the owners. Such activity harms your email marketing campaign. The email addresses used in registration or newsletter subscriptions receive undesirable newsletters. Your store may be marked spam due to such unwanted emails and if done on large scale, Gmail may blacklist you, hence your newsletter will not be delivered to subscribers.\n\n# How it works\nCheck some logic before creating user account \n\n```php\n  public function beforeCreateAccount(\n        \\Magento\\Customer\\Model\\AccountManagement $subject,\n        $customer\n    )\n    {\n        $regexp = '/(?:(?:https?|ftp|file):\\/\\/|www\\.|ftp\\.)(?:\\([-A-Z0-9+\u0026@#\\/%=~_|$?!:,.]*\\)|[-A-Z0-9+\u0026@#\\/%=~_|$?!:,.])*(?:\\.[A-Z0-9]{1,})\\.?/im';\n        $firstName = $customer-\u003egetFirstname();\n        $lastName = $customer-\u003egetLastname();\n\n        if (strlen($firstName) \u003e 70 || strlen($lastName) \u003e 70) {\n            throw new \\Exception(__(\"Name is to long\"));\n        } elseif (preg_match($regexp, $lastName . $firstName)) {\n            throw new LocalizedException(__(\"Site name doesn't allowed\"));\n        }\n    }\n```\n\n# Installation \n\ncd [magento root dir]/app/code/\n\ngit clone   https://github.com/Genaker/SpamUsersFilter.git \n\nmv SpamUsersFilter/* .\nrm -rf SpamUsersFilter\ncd ../..\n\nphp bin/magento setup:static-content:deploy --keep-generated\nphp bin/magento  setup:di:compile\n\nIf you can contribute composer installation please do it \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenaker%2Fspamusersfilter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgenaker%2Fspamusersfilter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgenaker%2Fspamusersfilter/lists"}