Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How thinkphp6 hides the admin login entry

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how thinkphp6 hides the admin login entry. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.

Thinkphp6 hides the admin login entry: 1, modify the value of deny_module_list; 2, change the admin in admin.php to any random string.

This article operating environment: Windows7 system, thinkphp V6 version, Dell G3 computer.

How does thinkphp6 hide the admin login entry?

Specific steps for ThinkPHP to hide the background address

1. Modify the value of deny_module_list in application/config.php on the home page. By default, there is already common. We add admin and change it to ['common',' admin'].

2. Then create a new admin.php under the project public directory and rename it to admin_d75KABNWt.php. We can change the admin in the admin.php to any random string, as long as possible.

3. Log in to the backend. After the above modifications, we can no longer log in to the backend in the form of www.test.com/admin. At this time, we can use www.test.com/admin_d75KABNWt.php, where admin_d75KABNWt.php is the name we modify at will.

Note: please protect your background login entrance, do not paste everywhere, if there is a leak background entrance, please try to modify it again.

Other ThinkPHP security recommendations

Through the hidden background entrance address above, we have added the first door. Here are some security suggestions for everyone to add more security protection to our background.

1. Modify the login entry and super admin password managed by the background on a regular basis, the more complex the better.

2. Enable the login verification code at the background. How to enable it: modify the login_captcha at the bottom of application/config.php and change its value to true.

3. Modify the user name of the super administrator in the background. Everyone is used to using admin. It is recommended to change it to another name.

This is the end of the article on "how thinkphp6 hides the admin login entry". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it out for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report