刚刚把博客迁移到Hostus,既然迁移了就一次到位,把Nginx防御DDOS和CC也加上。加载HTTP段 ## # 基础配置 ## keepalive_timeout 10; server_tokens off; types_hash_max_size 2048; ## # 主要配置 ## sendfile on; tcp_nopush on; tcp_no…
禁用PHP不安全函数 vi /usr/local/php/etc/php.ini disable_functions = system,exec,shell_exec,passthru,proc_open,proc_close, proc_get_status,checkdnsrr,getmxrr,getservbyname,getservbyport, s…