Live data from Hacker News

Using Nginx to block Meta, Twitter and ChatGPT access to your sites

gist.github.com

1–10 of 26 posts

Re: Using Nginx to block Meta, Twitter and ChatGPT access to your sites

#4

How to turn your site ( and/or fediverse instance) invisible for Meta (Facebook, Instagram, Threads), Twitter and OpenAi ChatGPT.

and also potentially iOS/iMessage previews[0], which may not be a desired outcome.

[0] https://webmasters.stackexchange.com/questions/137914/spike-...

Re: Using Nginx to block Meta, Twitter and ChatGPT access to your sites

#10
Copying my comment here for additional discussion:

Worth noting that most of these bots are 'good bots' (i.e. they will obey robots.txt). So you can avoid the nginx resource usage entirely by adding suitable robots.txt entries.

I think using nginx tests like this could have negative effects on showing OpenGraph metadata (including images).

If choosing this approach however I would probably respond with a 403 code to mark forbidden as bots are more likely to continue making attempts if they think the server would come back online.

Post reply on HN