this post was submitted on 03 Aug 2023
757 points (98.2% liked)

Programmer Humor

32726 readers
58 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
all 9 comments
sorted by: hot top controversial new old
[–] photonic_sorcerer@lemmy.dbzer0.com 58 points 1 year ago (1 children)

Gotta implement this in my sites

[–] UdeRecife 7 points 1 year ago (3 children)

How? I'm asking in behalf of a friend.

[–] CupDock@lemmy.world 27 points 1 year ago* (last edited 1 year ago)

Quotes make it only return results that contain exactly what's in the quotes. All you need to do is put a string in your website that is unique to all indexed pages. Since there's no length limit (well, google searches have a max length, but it's pretty long), I expect that the vast majority of web pages will have some phrase you can use like this.

In theory, you could just search for the entire contents of a page in quotes and it'll be the only thing that pops up unless another page is identical or contains an identical copy of the first page within it.

[–] fades@beehaw.org 15 points 1 year ago

What? Just use an unique string that doesn’t give google results. When your site is inevitably crawled then you will be the one result

[–] technicalogical@lemmy.world 8 points 1 year ago

Be super indexed and write a phrase that is unique enough to eliminate 99.98% of other indexed sites when searched?

[–] Poggervania@kbin.social 42 points 1 year ago

That’s weird, whenever I put that in my Google I just get a result of OP’s mom

[–] TehPers@beehaw.org 18 points 1 year ago (2 children)

Odd, my google search just has a bunch of Lemmy/Mastodon results. Surely I'm doing something wrong, do I need to disable SafeSearch?

[–] ActuallyRuben@actuallyruben.nl 29 points 1 year ago

Simple quantum search entanglement. By observing the result, Torvald has changed the outcome.

But seriously, it's because his post gets reposted and federated across all those instances, and Google deems those more relevant than the GitHub page.