Trojans We should have heard a lot, but the PHP Trojan is rarely heard, but the Trojan's lethality is not small, not preventive. This article introduces some techniques to introduce a defense against PHP Trojan attacks, through which you can better prevent Trojans.
1, prevent jumping out of the web directory
First modify httpd.conf, if you only allow your php script to operate in the web directory, you can also modify the httpd.conf file to limit the operation of php path. For example, if your web directory is /usr/local/apache/htdocs, add a few lines to httpd.conf:
php_admin_value open_basedir /usr/local/apache
/htdocs
This way, if the script wants to read files other than /usr/local/apache/htdocs will not be allowed, if the error is displayed, it will prompt such an error:
Warning: open_basedir restriction in Effect. File is in wrong directory in
/usr/local/apache/htdocs/open.php on line 4
Wait.
2, prevent php Trojan from executing webshell
Open safe_mode,
In php.ini, set
disable_functions= passthru, exec, shell_exec, system
You can choose either one or both
3. Prevent php Trojans from reading and writing file directories
in php.ini Disable_functions= passthru, exec, shell_exec, system
Functions followed by php processing files
Mainly
fopen,mkdir,rmdir,chmod,unlink,dir
fopen,fread,fclose,fwrite,file_exists
closeir,is_dir,readdir.opendir
fileperms.copy,unlink,delfile
A lot of software will appear small icons in the system tray after startup. If the software is too m
Figure 2 Support Standard ComparisonWindows Server 2008 Foundation helps small businesses run busine
Personal user computer does not have a printer, there is a recorder but only use Windows built-in bu
What should I do if the XP system has file corruption? I believe that many users have encountered fi
Remotely manage WindowsXP with DW NT in five steps
Windows XP SP3 restarts PC continuously
Disable dangerous services for xp systems to reduce vulnerability threats
Six tricks to easily get the system update
Play desktop transparent icon under XP
Detailed win xp system stop operation error number
Introduction to win xp installation parameters
Master teaches you to play personalized boot operation skills
How does WinXP create PPPoE connection
XP system boot prompts missing DLL file solution
Graphical tutorial for adding download options in the Windows 7 Start menu
Win7 helps you improve efficiency and troubles
Win8 quick way to find applications
Win8.2 details exposure: the start menu will return
Creating Windows Vista System Health Report
MSN can't log in. There is a solution for 81000306 error code.
Win7 pure version 32-bit system double-click u disk can not open the solution
Win8: Is it different or different?
What improvements have been made to UAC in Windows 7 systems?
The unknown Win7 system trick date bar displays week information