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

  1. Osu
    Posted 1 year ago #


    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.



  2. bcworkz
    Posted 1 year 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.

Topic Closed

This topic has been closed to new replies.

About this Topic