WordPress.org

Ready to get started?Download WordPress

Forums

How can I forbid user visit wp-admin? (8 posts)

  1. liquidshile
    Member
    Posted 4 years ago #

    In my WP website, when a user login, he/she can visit http://www.mydomianname.com/wp-admin. Although they cannot do anything in dashboard, I want to hide wp-admin for general user. I hope only admin can see and visit wp-amdin. Is there someway to do it?

  2. s_ha_dum
    Member
    Posted 4 years ago #

    There is no built in way to do that I know about. I'm sure it can be done though.

    If you do this, your users will not be able to change any of their information including their passwords. They'll be stuck with the cryptic and virtually guaranteed to be forgotten passwords WP generates. They can't change email address if needed. Nothing. Are you sure about this?

  3. liquidshile
    Member
    Posted 4 years ago #

    yes, I am sure. I already made an independent page for customer profile

  4. esmi
    Forum Moderator
    Posted 4 years ago #

    Have a look at some of the role management plugins. It may be possible to use one of them to remove all access privileges for the basic subscriber role.

  5. s_ha_dum
    Member
    Posted 4 years ago #

    wp_login_url will accept a redirect parameter. That will get you partway there, so long as you cook up your own login links.

    Remove the 'read' privilege from the 'Subscribers' and they cannot access the backend but you get a 'no access' message on login not a clean redirect.

  6. s_ha_dum
    Member
    Posted 4 years ago #

    I should add that I don't what will or won't break if you deny 'read'.

  7. tommix
    Member
    Posted 4 years ago #

    just protect that folder with passwords-that's easy.

    ofcourse password should look like this: 4c?89xGUz(a8E4GQL*)xds?s5EV

    not some; 123thisstupidpass

  8. Ares
    Member
    Posted 4 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags