2018年1月7日

nginx 访问控制

摘要: nginx 访问控制 可以匹配正则 location ~ .*(abc|image)/.*\.php$ { deny all; } 根据user_agent限制 if ($http_user_agent ~ 'Spider/3.0|YoudaoBot|Tomato') { return 403; } 阅读全文

posted @ 2018-01-07 22:58 游荡的鱼 阅读(148) 评论(0) 推荐(0) 编辑

nginx 防盗链

摘要: nginx 防盗链 参考链接:http://nginx.org/en/docs/http/ngx_http_referer_module.html 来自模块: Module ngx_http_referer_module 指令: refere_hash_bucket_sizeSets the buc 阅读全文

posted @ 2018-01-07 22:20 游荡的鱼 阅读(208) 评论(0) 推荐(0) 编辑

导航