Disable some dangerous php functions using php. ini. Many functions in php have not been used for many times, and there are great security problems with the website. below we use PHP. in ini, there is a disable_functions switch option to shut down many functions in php for a lot of time, and there are a lot of security problems with the website. below we use PHP. ini has a disable_functions switch option to disable unnecessary functions.
If it is disabled, the following prompt will appear:
Warning: phpinfo () has been disabled for security reasons
Shielding function instances:
| The code is as follows: |
|
| Disable_functions = phpinfo, dl, exec, system |
Note: Some friends may want to use disable_functions to disable the eval function. this cannot be disabled. As for the reason, I will tell you that it is not a system function. for details, refer.
There is a disable_functions switch option in functions to close...