It can be another layer of security..
|
|
To modify logout URL (in admin) edit your functions.php:
|
|||
|
|
|
None of these answers were especially useful. I question the motives of the OP, but here is how to do it. Add this to your functions.php, but make sure to replace "$login_page_id":
On your new login page, you can simply add this function to show a login form:
|
||||
|
|
|
You could use this plugin: http://wordpress.org/extend/plugins/wp-login/ You can just create a page and tell the plugin that's where the login is. But all it basically does is redirect wp-login.php to your "page". So any bot searching for wp-login.php will just be redirected to your "page". To protect you login page from bots you should use a combination of a cookie and .htaccess as most bots don't use cookies. Something like this:
In the example above I'm using a PHP Session Cookie, since it's the easiest to implement. |
|||
|
|
|
I solved this problem by deleting three of my blogs and changing the parameters of limit-login to the maximums possible. 9999 For the one scum spammer at 208.91.199.94 who has hit my login page 750 times in the last two days, I am working on eliminating him other ways. |
|||
|
|
|
Just build out new login pages in subdirs. Copy the existing wp-login page into a new directory in your webroot (maybe "/login"), rename it index.php, add a WordPress bootstrap to the top of the page, and do whatever you like with it (theming, etc). You do have to adjust the login page's default code a bit, mostly to find/replace for hardcoded links and redirects to "wp-login.php". But as long as you leave all the hooks and filters in place, this approach won't mess up any plugin integration. And WordPress core updates are fine, unless the update includes changes to the wp-login page itself (which rarely happens in minor versions). You can also build out user account pages this way (I put them in the dir "/profile"). Once you've done that, subscriber-level users should never need to go into wp-admin, so you can protect it with an htaccess file. This is the part that actually gives you the added security you were looking for. Just be sure to make an exception in your htacces for the admin-ajax file, since some plugins use it on the frontend. Pretty sure you're not going to find a plugin-only solution. But if you do, let us know! |
|||
|
|
|
You can disable the wp-login page from your functions by hooking into login_head:
(that's obviously a very clumsy way of doing it, but it prevents anyone from being able to login through that page. You could make that a redirect function, or a warning message, rather than just a die.) And copy the existing wp-login file to another location, making sure to update the relative path to (Obviously you'll have to remove the action that you added to Then, you should just need to add a filter to |
||||
|
|
|
This isn't a great security idea because the wp-login or wp-admin page in of itself does not pose a security threat. Though it can be argued that if someone had your password/username they might not be able to find where to login, thus security through obscurity. As kronus said you could probably to some fancy re-directs, not sure how well that would scale with future releases or if it is even worth the trouble, personally I don't think its worth it and I take security seriously. I would suggest some better ideas for your login. Enable ssl for the login/admin (htpps). Password protect your page using .htaccess ( so you will have a double login). Use a plugin like Limit Login Attempts, which locks out a user after failed logins. |
|||||||||||
|
|
You could try editing the |
|||||||||
|
