大网数据广告活动
网站运营与故障问答

Should I redirect login / admin pages to the home page?

· 52CE 我爱测

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 (t…

问题原文

原帖链接 · 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

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2018-03-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。