WordPress.org

Ready to get started?Download WordPress

Forums

wp-login.php?action=postpass = 404? (3 posts)

  1. devbrian
    Member
    Posted 1 year ago #

    I'm using a custom password form in my functions.php file, like this:

    add_filter( 'the_password_form', 'custom_password_form' );
    function custom_password_form() { global $post; $label = 'pwbox-'.( empty( $post->ID ) ? rand() : $post->ID ); $o = '<form class="protected-post-form" action="' . get_option('siteurl') . '/wp-login.php?action=postpass" method="post">
    ' . __( "<h2>Enter Password</h2>
    <p>This proposal is password protected. To view it please enter your password below:</p>" ) . '
    <label for="' . $label . '">' . __( "Password:" ) . ' </label><input name="post_password" id="' . $label . '" type="password" size="20" /><input type="submit" class="submit" name="Submit" value="' . esc_attr__( "Submit" ) . '" /> </form>
    ';
    return $o;

    For whatever reason, it recently started directing wp-login.php?action=postpass to the 404 page. It was working properly before, but my client said that it started acting funny over the last few days. However, he has not made any updates to the site.

    WordPress 3.5.1 - I have reinstalled WP and the same problem exists.

    I have disabled every plugin and the problem still exists.

    I have also enabled the Twentyeleven theme and the problem still exists. Any help would be grand

  2. WPyogi
    Volunteer Moderator
    Posted 1 year ago #

    This might be due to widespread massive brute force attacks on servers of many hosting companies. Some have temporarily blocked login access. So your client may want to check with the hosting company.

  3. MikeInMass
    Member
    Posted 1 year ago #

    I am having the same problem and to my surprise my host, Site5, blocked login access without telling me. Two lashes with a wet noodle for Site5.

Topic Closed

This topic has been closed to new replies.

About this Topic