cunnie / sslip.io

Golang-based DNS server which maps DNS records with embedded IP addresses to those addresses.
Apache License 2.0
646 stars 77 forks source link

Send 404 response code with blocked page #58

Closed Morty-Feldman closed 4 months ago

Morty-Feldman commented 4 months ago

I use Google's URL removal tool to help deindex mirror sites.

With the new blocked page (example), doing so results in a "Denied: Page not removed" response from this tool.

Is it possible to send a 404 response code (for example, via an http header) along with this page?

If not, putting the text "404" somewhere on the page might help as Google might see that as a "soft" 404.

cunnie commented 4 months ago

@Morty-Feldman 404? Brilliant idea! I think I can make it work — maybe this weekend.

cunnie commented 4 months ago

Hi @Morty-Feldman : it should be fixed now — blocked sites return a 404 instead of a 200. Please confirm when you have the time.

Morty-Feldman commented 4 months ago

Looks great - awesome!