logoalt Hacker News

thwartedyesterday at 9:10 PM0 repliesview on HN

What does this mean?

This text appears on this page https://www.autom.dev/blog/google-search-goto-links

> The real URL is in the Location header on /goto. Request that URL. Do not follow the redirect.

And this text appears on this page https://www.autom.dev/blog/google-goto-url-fix

> Do not follow the redirect. Read Location.

That's what a redirect is, reading the value of the location header and then requesting it. How do you not follow the redirect by reading the location header? Once you've made the request to the /goto url, with GET or HEAD, to get the location header, google knows you're interested in whatever it is putting in the location header and can assume you're going to go there, if you're letting the User Agent (curl or the browser) go there for you or not.