Prevent them from cracking, let them disguise themselves, and let them think about it slowly!
1. Hide the php version number
Hiding method: Add the following code to vimphp. ini:
expose_php = Off
2. Hide the nginx version number
Hiding method: vimnginx. conf is added to http.
sever_tokens= Off
3. Hide the apache version
Hiding method: Add the following code to vim httpd. ini:
ServerTokens = ProductOnly ServerSignature = Off
To modify each configuration file, you must restart the service to make it take effect.
Disguise apache
Edit the ap_release.h file and change "# define AP_SERVER_BASEPRODUCT \" Apache \ "to" # define AP_SERVER_BASEPRODUCT \ "Microsoft-IIS/5.0 \"".
Edit the OS/unix/OS. h file and change "# define PLATFORM \" Unix \ "to" # define PLATFORM \ "Win32 \"".
After modification, recompile and install Apache.
Disguise nginx
Cd/usr/local/src/nginx-1.0.6/src/core/
[Root @ server core] # catnginx. h
/* * Copyright (C) Igor Sysoev */ #ifndef _NGINX_H_INCLUDED_ #define _NGINX_H_INCLUDED_ #define NGINX_VERSION "1.0" #define NGINX_VER "ZWS/" NGINX_VERSION #define NGINX_VAR "ZWS" #define NGX_OLDPID_EXT ".oldbin" #endif /* _NGINX_H_INCLUDED_ */