Serving different content based on the user agent header or similar is not exactly difficult.
And there are even [sneakier ways](https://www.idontplaydarts.com/2016/04/detecting-curl-pipe-b...) to identify if you're curling into bash.