News for hackers. Stuff that matters.
Re:Removing my site from Google search by bouke on Sunday October 03, 2021 @02:25PM (#28739335)
Why not use robots.txt instead of littering your html with googlebot instructions?
Re:Removing my site from Google search by tao_oat on Sunday October 03, 2021 @02:31PM (#28739385)
Hi, author here. Google stopped supporting robots.txt [edit: as a way to fully remove your site] a few years ago, so these meta tags are now the recommended way of keeping their crawler at bay: https://developers.google.com/search/blog/2019/07/a-note-on-...
Re:Removing my site from Google search by new_guy on Sunday October 03, 2021 @02:34PM (#28739420)
Did you actually read your link? That's not at all what it says.
Re:Removing my site from Google search by tao_oat on Sunday October 03, 2021 @02:36PM (#28739446)
To be clear, stopped supporting robots.txt noindex a few years ago.

Combined with the fact that Google might list your site [based only on third-party links][1], robots.txt isn't an effective way to remove your site from Google's results.

Sorry, could have been clearer.

[1]: https://developers.google.com/search/docs/advanced/robots/in...

Re:Removing my site from Google search by gnabgib on Sunday October 03, 2021 @02:40PM (#28739483)
This page has a little more detail: https://developers.google.com/search/docs/advanced/crawling/...

"If other pages point to your page with descriptive text, Google could still index the URL without visiting the page. If you want to block your page from search results, use another method such as password protection or noindex. "

Re:Removing my site from Google search by dd82 on Sunday October 03, 2021 @02:37PM (#28739453)
>noindex in robots meta tags: Supported both in the HTTP response headers and in HTML, the noindex directive is the most effective way to remove URLs from the index when crawling is allowed.

Seems clear enough to me

Re:Removing my site from Google search by jen20 on Sunday October 03, 2021 @02:38PM (#28739465)
Quote from the linked article:

“ For those of you who relied on the noindex indexing directive in the robots.txt file, which controls crawling, there are a number of alternative options:”

The first option is the meta tag. It does mention an alternative directive for robots.txt, however.

Re:Removing my site from Google search by ghassanmas on Sunday October 03, 2021 @04:27PM (#28740268)
What about the blocking google bot by their IPs, also combined with user-agent wouldn't that stop the crawlers

Google crawlers IPs https://www.lifewire.com/what-is-the-ip-address-of-google-81...

Re:Removing my site from Google search by benatkin on Sunday October 03, 2021 @07:03PM (#28741302)
That will stop the crawlers but you could still show up in the search results, because of other web pages. From GP:

> If other pages point to your page with descriptive text, Google could still index the URL without visiting the page

Re:Removing my site from Google search by Animats on Sunday October 03, 2021 @02:51PM (#28739561)
Did you think that mighty Google would pay attention to your puny "noindex" tag? Ha!
Re:Removing my site from Google search by thih9 on Sunday October 03, 2021 @03:10PM (#28739721)
According to google's own docs, this should work.

> You can prevent a page from appearing in Google Search by including a noindex meta tag in the page's HTML code, or by returning a noindex header in the HTTP response.

Source: https://developers.google.com/search/docs/advanced/crawling/...

Re:Removing my site from Google search by bryanrasmussen on Sunday October 03, 2021 @03:28PM (#28739833)
I mean technically that says that your site won't appear in search results, not that your site won't be used to profile people, determine other site ratings based on your site's content etc.

they won't show your site's content, but that doesn't mean they won't use your site's content.

Re:Removing my site from Google search by thih9 on Sunday October 03, 2021 @05:01PM (#28740469)
I thought that (i.e. removing the site from google search) was the goal.

I'd review the other usage on a case by case basis; e.g. determining ratings of other sites seems fair use to me. I'd guess you're allowing others to use your site's content when you're making your site public (TINLA).

Re:Removing my site from Google search by bryanrasmussen on Sunday October 03, 2021 @05:38PM (#28740727)
maybe, but I guess I would be cantankerous enough to see the goal as preventing google from profiting off your site.
Re:Removing my site from Google search by swills on Sunday October 03, 2021 @04:46PM (#28740374)
Until they change the rules again...
Re:Removing my site from Google search by mro_name on Sunday October 03, 2021 @04:00PM (#28740038)
yes, I do think that
Re:Removing my site from Google search by bhartzer on Sunday October 03, 2021 @09:45PM (#28742163)
Google will still index the url even if you block them from crawling the page via robots.txt. They will index the lane, and it can still rank well. Google just puts up a message in the results saying they’re not allowed to crawl the page.
Re:Removing my site from Google search by walshemj on Sunday October 03, 2021 @04:54PM (#28740420)
robots.txt stops crawling - you can get indexed via other mechanisms.

You want no index robots tags on all your pages and let google see those.

You can use GSC (Google search console) to remove a site / page from the index

Re:Removing my site from Google search by TheChaplain on Sunday October 03, 2021 @02:28PM (#28739361)
Yes, pretty sure this is the way to go.

You can even tell which bots are allowed to index and not.

Re:Removing my site from Google search by vadfa on Sunday October 03, 2021 @02:38PM (#28739469)
Or even better, iptables rules :P
Re:Removing my site from Google search by TedDoesntTalk on Sunday October 03, 2021 @02:45PM (#28739519)
Doesn’t that mean you have to know every IP Address used by Google bot now and in the future?
Re:Removing my site from Google search by judge2020 on Sunday October 03, 2021 @03:08PM (#28739699)
The way to check googlebot (in a way that will be resistant to expansion of Googlebot's IP ranges in the future) is to perform hostname lookup, with dns lookup as well to verify that the rDNS isn't a lie: https://developers.google.com/search/docs/advanced/crawling/...
Re:Removing my site from Google search by lucb1e on Sunday October 03, 2021 @03:14PM (#28739749)
Indeed, this was one of the things I considered (note I'm not OP), but then I didn't really want to rely on DNS. https://duckduckgo.com/?q=it's+always+DNS
Re:Removing my site from Google search by AshamedCaptain on Sunday October 03, 2021 @03:05PM (#28739668)
Not a very hard problem; after all, many websites allow full access to Googlebot IP ranges yet show a paywall to everyone else (including competing search engines).

I also happen to ban Google ranges on multiple less-public sites specially since they completely ignore robots.txt and crawl-delay.

Re:Removing my site from Google search by chihuahua on Sunday October 03, 2021 @08:50PM (#28741893)
Is that how archive.vn works? I've always wondered how they are able to get the full text of paywalled sites like Wall Street Journal who give 0 free articles per month.