WordPress.org

Ready to get started?Download WordPress

Forums

Disabling wp-login.php register form (2 posts)

  1. Osu
    Member
    Posted 5 months ago #

    Hi,

    I've been getting a few spam sign ups lately and trying to think about the best way to disable them while still allowing sign ups via a plugin I'm using called 'Profile Builder Pro'.

    Is there a way to use functions.php to literally not return the register form here? http://www.domain.com/wp-login.php?action=register

    That would mean people could only sign up via the front end with the plugin.

    Anyway tips really apprecaited.

    Thanks,

    Osu

  2. bcworkz
    Member
    Posted 5 months ago #

    The login page has numerous actions that could be leveraged, or you could check the HTTP_REFERER field in a 'register_post' hook to manage appropriate registration forms.

    Probably easiest is to use .htaccess to redirect the page request to a 403 page or something.

Reply

You must log in to post.

About this Topic