Thread: Blocking User

Page 1 of 2 12 LastLast
Results 1 to 10 of 16
  1. #1
    Join Date
    Feb 2005
    Location
    Captain Cook, Hawaii
    Posts
    179
    Plugin Contributions
    0

    Default Blocking User

    I need to block a certain user from creating an account. I believe that since they add items to the cart and try to check out using credit card, that they are testing CVV numbers or expiration dates, etc. I posted in 'Hack' but got no suggestions.

    Evil doers create the same account multiple times on each cart every month using the same 1st and last name, address, phone and so on. All that info is a U.S. address. The only difference is the email and what IP they come from, mostly from a non-U.S. IP and that is easy to block in the .htaccess file. However some of these sites have international customers.

    Please post a code snippet and location where I can best check for this same account info and not create the account. Perhaps displaying a 'database corruption' or 'down for maintenance' message or some such so they go away.

    I am hoping for a 'if first name = and last name - and zip = then display message and exit' type code. I think this may be in functions_customers, but could use some direction.

    Thanks.
    Aloha from Hawaii! (its a dirty job, but SOMEBODY has to live here...)

  2. #2
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Blocking User

    File: includes/modules/create_account.php

    around line 75 (in 1.5.5f)

    Code:
    if ($postcode == "20500" && $firstname == "Vlad" && $lastname = "Putin") { 
          $error = true;
          $messageStack->add('create_account', "This account already exists.", 'error');
    }
    Giving them a fake error rather than exiting will keep them guessing. :)

    Good luck!
    Last edited by swguy; 14 Aug 2018 at 02:44 AM.
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  3. #3
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Blocking User

    You could block names, phone, but your list would most likely grow large and start blocking good users. Have you gone back to your raw access logs and try to match time/IP with the attempts? Tracking back to see what if anything is common in the user agent string. Most well use older versions of Firefox for it offer better interaction with spoofing addons...

    It's a bit of work, but you could code in a email address opt-in basically locking access until they answer the opt-in email. I've done this, but without locking there account. Forcing opt-in has the affect of ticking off customers.

    If you find a common user agent or email domain, there are some things you can try...
    Dave
    Always forward thinking... Lost my mind!

  4. #4
    Join Date
    Jul 2012
    Posts
    16,734
    Plugin Contributions
    17

    Default Re: Blocking User

    To add to swguy's suggestion, I would include some "space" clearing code to remove whitespace from the beginning and end of each of those entries.

    For what it's worth, have seen similar account creations on another site. In some cases the accounts have shown more than one login occurrence, though the date between initial account creation and a later login had a lot of time between the two.

    Such reoccurrence seems to identify some level of consistency in making the attempts as at least a password was consistently able to be entered (investigation did not go into verifying whether a change of password email was requested or other such means to regain access).
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #5
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Blocking User

    I'm hoping to block fake account creations, by blocking the Company Name field, if it equals 'google'
    Every spam account created has google as the company for me.

    Using 1.54 I'm not quite sure how to edit and where to add the suggested above in
    includes/modules/create_account.php ?

  6. #6
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Blocking User

    Perhaps lat9's Access Blocker will do the trick for you.

  7. #7
    Join Date
    Jan 2007
    Location
    Mount Maunganui, New Zealand
    Posts
    419
    Plugin Contributions
    0

    Default Re: Blocking User

    Thanks for the idea.
    I've installed it, but it's mostly for ip related blocking and no where to block by Company name or names in general.
    If I could just block by Company name, I'd be sorted.

  8. #8
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,151
    Plugin Contributions
    11

    Default Re: Blocking User

    The beauty of open source. Make it your own.

  9. #9
    Join Date
    Aug 2019
    Location
    Romania, Iasi
    Posts
    1
    Plugin Contributions
    0

    Default Re: Blocking User

    Thanks for the great idea!!

  10. #10
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    9,697
    Plugin Contributions
    123

    Default Re: Blocking User

    I have such a module that will be coming up in about a month. It's called JerkBlocker and it has tons of configurable options. :)
    That Software Guy. My Store: Zen Cart Modifications
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Blocking a user from my Store - HOW?
    By glittergirljo in forum General Questions
    Replies: 1
    Last Post: 14 Dec 2010, 01:34 AM
  2. Blocking an IP Address
    By 4kidz in forum General Questions
    Replies: 2
    Last Post: 10 Dec 2009, 11:46 PM
  3. Blocking IP Addresses
    By direwolf in forum General Questions
    Replies: 2
    Last Post: 18 Aug 2009, 12:28 AM
  4. Blocking access
    By maclancer in forum General Questions
    Replies: 3
    Last Post: 22 Jul 2007, 04:58 PM
  5. Blocking an IP Addy
    By jimwsr65 in forum General Questions
    Replies: 6
    Last Post: 15 Jul 2006, 08:59 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR