Hacker News new | ask | show | jobs
by saagarjha 2678 days ago
Are you sure about that? I seem to recall them doing this for quite a while. Or maybe that was advanced code searches?
2 comments

Code search has been restricted at least since September 2016 according to a quick search on HN: https://news.ycombinator.com/item?id=19185835
Quite sure you are right, unless my memory is failing sitewide github search of codebases required a login. Searching for repo names without login was ok though.

Possibly it was only enforced for very generic search queries returning thousands of results but it has been around a long time, Github acquisition was only in October 2018.

Sitewide code search has been used to find AWS keys and other secrets people have accidentally uploaded. The login requirement is so they can set meaningful rate limits.