WordPress.org

Ready to get started?Download WordPress

Forums

Rename wp-login.php
[resolved] deny by htaccess (2 posts)

  1. Topher
    Member
    Posted 7 months ago #

    My primary reason for using this was to stop WordPress and php from spinning up at all, since it was consuming resources simply by having WP generate the 404 page.

    For that reason I put this into my .htaccess file:

    <Files wp-login.php>
    order allow,deny
    deny from all
    </Files>

    And now Apache serves a 403 and never spins up php.

    I don't need help, simply offering something that can help.

    Maybe make the plugin drop that in into .htaccess automatically?

    http://wordpress.org/plugins/rename-wp-login/

  2. Janneke Van Dorpe
    Member
    Plugin Author

    Posted 6 months ago #

    I might do that, but then you don't get the custom 404 page. Depends on what people want. But yeah, it would save server resources for apache.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags