When a hacker browses your website, the error message of your website will provide the hacker with information about the attack on your website. For example, for empty operations and controllers, you will be exposed to the frameworks used by hackers in the background of your website. hackers will attack your website based on the vulnerabilities in this province. Therefore, we need...
When a hacker browses your website, the error message of your website will provide the hacker with information about the attack on your website. For example, for empty operations and controllers, you will be exposed to the frameworks used by hackers in the background of your website. hackers will attack your website based on the vulnerabilities in this province. Therefore, we need to process empty controllers and operations without leaving any clues to hackers.
1. empty operation processing
First, let's take a look at the effect:
I have no hello method in the IndexController. class. php file. if I try to access this method, the following message will be reported:
Note: The Essence of null operations: an object (controller) calls a method that does not exist.
For more articles about ThinkPHP null operations and null controller processing, please follow the PHP Chinese network!