Last update at :2024-06-22,Edit by888u
If the website we build has log tracking turned on, and if you have the habit of checking logs, whether it is a virtual host or a VPS, our website will be scanned by people or soft articles, intentionally or unintentionally, for the WordPress login entrance. As the world's largest open source website program, there are masters who want to invade this program every day. Sometimes they may not target our website, but they may become targets because the password is relatively simple.
On the basis of basic account username and password security, it is best to restrict access or hide this login entrance. I have also seen some tutorials before about installing plug-ins. For example, installing the Stealth Login Page plug-in can set the parameters after the login page. , the same as the non-plugin implementation I want to set up. You can also use Limit Login Attempts to limit the number of logins. If the number exceeds a certain number, access will be restricted.
We can solve this problem by modifying the function.php file without plug-ins
add_action(\\'login_enqueue_scripts\\',\\'login_protection\\');function login_protection(){if($_GET[\\'root\\'] != \\'laozuo\\') header(\\'Location: http://any other website or website homepage/\\');}
Just add the above script, and then modify the red part to what you need. In the future, we only need to use this background path to log in to our WP website.
http://www.laozuo.org/wp-login.php?root=laozuo
If such a path is not used, it will jump out according to the settings we set to ensure the concealment of the login entrance.
Recommended site searches: Chinese domain name fees, website registration prices, Hong Kong host high defense, US space, check IP address, Hong Kong server, space service provider, mainland China permanently free cloud server recommendation Beijing server rental, high defense US server ,
发表评论