Block bots from directory
# Block some bots from everything in this directory
location = /schedule/ {
if ($http_user_agent ~* "Googlebot|bingbot") {
return 403;
}
}
1 Reply
Try
if ($http_user_agent ~* (googlebot|bingbot) ) {
return 403;
}