问题原文
原帖链接 · Coomie · CC BY-SA 3.0
I'm on a security kick right now and my current project is a server with a Wordpress site (that used to be a Joomla site). I sometimes get 50 requests a day to
/wp-login.php (the Wordpress default login page)
or
/administrator (the Joomla default login page)
I obfuscate my login page so they 404 but they continue to give 200 OK instead of 404 Not Found.
I don't like to have people try to hack my website.
I'm thinking about 301 redirecting those requests to the home page hopefully to confuse the brute-force bots. Would there be any drawbacks to such an approach?
I'm also thinking about sending other hack requests there, like author pages, search pages and non-existent plugins.
已采纳解答
原帖链接 · Emirodgar · CC BY-SA 3.0
The short answer to your question is no, there will be no problem doing that but I'll definitely keep a fake /administrator and /wp-login.php files. That will keep bots and strangers occupied for nothing.
On the other hand, I'd take into consideration:
- Password protect the real server
- Limit login attempts
- Allow access to login files by IP
- Change default database prefix
- Disable directory browsing
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
