隐藏apache2版本信息

To hide web server version number, server operating system details, installed Apache modules and more, open your Apache web server configuration file using your favorite editor: $ sudo vi /etc/apache2/apache2.conf #Debian/Ubuntu systems $ sudo vi /etc/httpd/conf/httpd.conf #RHEL/CentOS systems And add/modify/append the lines below: ServerTokens Prod ServerSignature Off Save the file, …

根据不同访问设备跳转到PC页面或手机页面

<script type=”text/javascript”> var userAgent = navigator.userAgent.toLowerCase(); var platform; if(userAgent == null || userAgent == ”){ platform = ‘WEB’ ; }else{ if(userAgent.indexOf(“android”) != -1 ){ platform = ‘ANDROID’; location.href = “http://m.kuegou.com/”; }else if(userAgent.indexOf(“ios”) != -1 || userAgent.indexOf(“iphone”) != -1 || userAgent.indexOf(“ipad”) != -1){ platform = ‘IOS’; location.href = “http://m.kuegou.com/”; }else if(userAgent.indexOf(“windows …