Fix Fastly bot block for Ruby Net::HTTP clients (#15713)
I was using the wrong VCL request property. It's `req.url`, not `req.http.url`. https://developer.fastly.com/reference/vcl/variables/client-request/req-url/
This commit is contained in:
parent
74b065be58
commit
e188eac55d
1 changed files with 1 additions and 1 deletions
|
|
@ -114,7 +114,7 @@ sub vcl_recv {
|
|||
|| req.http.user-agent == "RSurf15a 51"
|
||||
|| req.http.user-agent == "RSurf15a 81"
|
||||
# Block Ruby bots unless they're interacting with the API
|
||||
|| (req.http.user-agent == "Ruby" && !(req.http.url ~ "^/api"))
|
||||
|| (req.http.user-agent == "Ruby" && !(req.url ~ "^/api"))
|
||||
|| req.http.user-agent == "searchbot admin@google.com"
|
||||
|| req.http.user-agent == "ShablastBot 1.0"
|
||||
|| req.http.user-agent == "snap.com beta crawler v0"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue