Giter Site home page Giter Site logo

davidduong90 / magento1-spam-user-cleanup Goto Github PK

View Code? Open in Web Editor NEW

This project forked from infoworxx/magento1-spam-user-cleanup

0.0 1.0 0.0 10 KB

Script for removal of spam accounts in Magento1

License: GNU General Public License v2.0

PHP 100.00%

magento1-spam-user-cleanup's Introduction

magento1-spam-user-cleanup

Script for cleaning user database in Magento 1 from spam registrations.

What does it do?

The script selects all:

  • unconfirmed user accounts AND

  • accounts with missing address AND

  • accounts without order(s) AND

  • mail address ending with .ru (beware if this is the right use case for you!) OR

  • lastname or firstname with invalid patterns

Customizing

Simply change the ->addAttributeToFilter to your needs.

Installing

Make a Backup of your data and database !

After that - simply copy the script to your magento root and run from shell with

php -f removeInvalidUserAccounts.php

to avoid interruption due to the php memory limit use:

php -d memory_limit=-1 -f removeInvalidUserAccounts.php

License

GNU GENERAL PUBLIC LICENSE v2.0

WITHOUT ANY WARRANTY! USE ON YOUR OWN RISK! MAKE A BACKUP BEFORE USING!

magento1-spam-user-cleanup's People

Contributors

slemke76 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.