google / site-kit-wp

Site Kit is a one-stop solution for WordPress users to use everything Google has to offer to make them successful on the web.
https://sitekit.withgoogle.com
Apache License 2.0
1.23k stars 287 forks source link

Use a proper user agent for site verification #826

Closed archon810 closed 4 years ago

archon810 commented 4 years ago

Hi,

I couldn't figure out why Site Kit verification was getting blocked until I found that Go-http-client is blocked at the server level to avoid scrapers. Can you please use a proper unique user agent for these requests to avoid such issues?

"POST /wp-json/google-site-kit/v1/oauth/site/ HTTP/1.0" 403 7 "-" "Go-http-client/2.0 X-Middleton/1"
"POST /?rest_root=/google-site-kit/v1/oauth/site/ HTTP/1.0" 403 7 "-" "Go-http-client/2.0 X-Middleton/1"

Thanks.

ThierryA commented 4 years ago

Thanks for reporting this @archon810. We just deployed a fix to add the user-agent set to Site Kit by Google/1.0.