去评论
dz插件网

nginx 屏蔽网站首页访问 允许蜘蛛访问的方法

镖师
2023/03/15 13:19:01
  1. location = / {    if ($http_user_agent !~* (spider|bot|googlebot|bingbot|yandex|msnbot|slurp)) {        return 403;    }    # other rules}