简体   繁体   English

如何在尝试wp-admin时对未登录的访客隐藏wordpress错误,而不显示404错误?

[英]How to hide wordpress error from a non logged guest rather to show 404 error while trying wp-admin?

I am designing my wordpress website and nobody should know that I am using wordpress for my site. 我正在设计我的wordpress网站,没有人知道我在为我的网站使用wordpress。 I designed my custom login page with custom URL and managed my logged in users to get HTTP 404 error if they try to access wp-admin or wp-login but only thing left is that if a guest who is not logged in try to access wp admin by simply typing www.mydomain/wp-admin on browser gets wordpress error which reveals everything. 我设计了具有自定义URL的自定义登录页面,并管理我的登录用户,如果他们尝试访问wp-admin或wp-login时出现HTTP 404错误,但剩下的就是,如果未登录的访客尝试访问wp管理员只需在浏览器上键入www.mydomain / wp-admin,就会得到wordpress错误,从而显示所有内容。 So I need a code so those guests also get HTTP 404 error. 因此,我需要一个代码,以便那些来宾也收到HTTP 404错误。 They should be redirected 404 page only because I set a ban for those users who get more than 5 HTTP error. 仅应将它们重定向到404页面,因为我为那些收到5个以上HTTP错误的用户设置了禁令。 Anyone please help. 有人请帮忙。

You can use the Lockdown WP plugin to hide the /wp-admin section and return a 404 error for users that are not logged in. It will also rewrite the login as you have already done. 您可以使用Lockdown WP插件来隐藏/ wp-admin部分,并为未登录的用户返回404错误。它还会像已经完成的那样重写登录名。

Keep in mind that there are still many give-aways that you are using Wordpress, such as the wp-content folder and other telltale files, if people actually want to find out what you are running. 请记住,如果人们确实想知道您正在运行的内容,那么仍有许多使用Wordpress的赠品,例如wp-content文件夹和其他Telltale文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM