Disable user accounts

  1. Nice_one

    The best thing to do is changing the role of the user you want to disable. If you want to band IP simply login to your CPanel ==> Security ==> Ip Deny manager. All you need to do add the ip and click add and it wont be able to visit your website until you remove the banned.

    On more thing if the visitor changing the last digits of his IP



    Then band 208.86.198 only and he want be able to come to your website even if he change them.

    You can banned as many as you want from your Cpanel.

    Posted: 5 years ago #
  2. Hello All,

    Today i developed and uploaded a plugin as you wanted...

    It manage the status of the user i.e. active or inactive permanently or for certain period of time...kept it quite simple

    Follow the below url:


    Posted: 5 years ago #
  3. I just wanted to add to this for anyone who finds this via Google while searching on disabling user accounts.

    Most of the existing solutions (some mentioned above) are rather poor. You don't need a plugin that creates a new table in your database just to disable users. Removing the role trick works, but seems like a hack.

    Regardless, it's actually not hard to do. I ended up writing a plugin that does just that. It disabled the user account and it's simple - as in there is ONE setting simple. No plugin settings page, no adding new tables, no modifying your user listings screen - just the ability to disable user accounts.


    Posted: 4 years ago #
  4. robbell99

    "No role for this site" simply DOESN'T work - I have tried this - it DOES NOT block a user login. Any other ideas?

    Posted: 3 years ago #
  5. This should be core.
    *Every* software / operating system / you name it, that has a Users table, has a enabled/disabled option.

    "It is not a core feature that everyone needs - it therefore should be a plugin not core feature."
    jcnetsys, I respectfully do not agree at all. See above.

    "disabling accounts should be a core feature. Although there are quite a few sites that may not think they need this, every site with more than one user potentially needs it. (...) Employees leave or change departments."
    sdaugherty, you are absolutely right.

    "No role for this site (...) If they try to log in at this point, they will get a message that they do not have permissions to view this page."
    Jen, it is just not the same as "Disabled". It's a hack. If people understood that, this thread wouldn't exist.

    "Removing the role trick works, but seems like a hack."
    Jared Atchison, It is a hack.

    And please stop with all the IP non-sense. It's not even remotely the same issue we're talking about here.

    Posted: 2 years ago #
  6. perthmetro

    I agree it should be core. In Australia it is the law that you can easily remove all information from a website's database should you wish.

    Posted: 2 years ago #
  7. thomaswm


    I've opened a feature request on Trac:

    Posted: 1 year ago #

RSS feed for this topic


You must log in to post.

  • Rating

    37 Votes
  • Status

    This idea has been implemented