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

The method of phpcms changing the login address in the background

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

Share

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

How does phpcms change the login address in the background? This problem may be often seen in our daily study or work. I hope you can gain a lot from this question. The following is the reference content that the editor brings to you, let's take a look at it!

How does phpcms change the login address in the background?

Many people know that the default phpcmsv9 background management path is not safe for the website, but we can modify the background management login path through some simple techniques. After modification, others will not be able to use the default path to access our background login address.

Phpcmsv9 can also modify the backend path by default, but his method must be bound to a second-level domain name, which is very inconvenient. The method we introduced today is very simple, which can be completed in two steps:

The first step: create a folder in the root directory of the website, and then enter the background login interface through this folder, so the folder name should be a name that you can remember and is not easy for others to guess. Here as a demonstration, I will take it as tianxing. Next, create a new file index.php in this folder with the following contents:

Step 2: create a new file MY_index.php in the phpcms/modules/admin/ folder with the following contents:

After the above two steps, we are done. After the modification is completed, the background login entry can only be accessed through the tianxing/ directory. If you directly use admin.php and index.php?m=admin access, it will jump directly to the home page of the website, thus preventing direct access to the background login entry.

The above method is to log in by setting a session value in the login entry file and go back to determine if the session value or session value is correct before entering the background.

Thank you for reading! After reading the above, do you have a general understanding of phpcms's method of changing the login address in the background? I hope the content of the article will be helpful to all of you. If you want to know more about the relevant articles, you are welcome to follow the industry information channel.

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: 207

*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

Servers

Wechat

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

12
Report