1074
you are viewing a single comment's thread
view the rest of the comments
[-] palordrolap@kbin.social 235 points 2 years ago

Put something in robots.txt that isn't supposed to be hit and is hard to hit by non-robots. Log and ban all IPs that hit it.

Imperfect, but can't think of a better solution.

[-] Blackmist@feddit.uk 21 points 2 years ago

"Help, my website no longer shows up in Google!"

[-] PM_Your_Nudes_Please@lemmy.world 15 points 2 years ago

Yeah, this is a pretty classic honeypot method. Basically make something available but inaccessible to the normal user. Then you know anyone who accesses it is not a normal user.

I’ve even seen this done with Steam achievements before; There was a hidden game achievement which was only available via hacking. So anyone who used hacks immediately outed themselves with a rare achievement that was visible on their profile.

[-] Link@rentadrunk.org 13 points 2 years ago

That’s a bit annoying as it means you can’t 100% the game as there will always be one achievement you can’t get.

[-] Omniraptor@lemm.ee 8 points 2 years ago

perhaps not every game is meant to be 100% completed

[-] CileTheSane@lemmy.ca 4 points 2 years ago

There are tools that just flag you as having gotten an achievement on Steam, you don't even have to have the game open to do it. I'd hardly call that 'hacking'.

[-] Aatube@kbin.social 11 points 2 years ago

robots.txt is purely textual; you can't run JavaScript or log anything. Plus, one who doesn't intend to follow robots.txt wouldn't query it.

[-] BrianTheeBiscuiteer@lemmy.world 55 points 2 years ago

If it doesn't get queried that's the fault of the webscraper. You don't need JS built into the robots.txt file either. Just add some line like:

here-there-be-dragons.html

Any client that hits that page (and maybe doesn't pass a captcha check) gets banned. Or even better, they get a long stream of nonsense.

[-] 4am@lemm.ee 24 points 2 years ago

server {

name herebedragons.example.com; root /dev/random;

}

[-] PlexSheep@feddit.de 16 points 2 years ago

Nice idea! Better use /dev/urandom through, as that is non blocking. See here.

I actually love the data-poisoning approach. I think that sort of strategy is going to be an unfortunately necessary part of the future of the web.

[-] ShitpostCentral@lemmy.world 16 points 2 years ago

You're second point is a good one, but you absolutely can log the IP which requested robots.txt. That's just a standard part of any http server ever, no JavaScript needed.

[-] GenderNeutralBro@lemmy.sdf.org 11 points 2 years ago

You'd probably have to go out of your way to avoid logging this. I've always seen such logs enabled by default when setting up web servers.

[-] ricecake@sh.itjust.works 12 points 2 years ago

People not intending to follow it is the real reason not to bother, but it's trivial to track who downloaded the file and then hit something they were asked not to.

Like, 10 minutes work to do right. You don't need js to do it at all.

[-] Ultraviolet@lemmy.world 6 points 2 years ago* (last edited 2 years ago)

Better yet, point the crawler to a massive text file of almost but not quite grammatically correct garbage to poison the model. Something it will recognize as language and internalize, but severely degrade the quality of its output.

[-] odelik@lemmy.today 3 points 2 years ago

Maybe one of the lorem ipsum generators could help.

[-] nullPointer@programming.dev 4 points 2 years ago

a bad-bot .htaccess trap.

this post was submitted on 14 Feb 2024
1074 points (100.0% liked)

Technology

86489 readers
2630 users here now

This is a most excellent place for technology news and articles.


Our Rules


  1. Follow the lemmy.world rules.
  2. Only tech related news or articles.
  3. Be excellent to each other!
  4. Mod approved content bots can post up to 10 articles per day.
  5. Threads asking for personal tech support may be deleted.
  6. Politics threads may be removed.
  7. No memes allowed as posts, OK to post as comments.
  8. Only approved bots from the list below, this includes using AI responses and summaries. To ask if your bot can be added please contact a mod.
  9. Check for duplicates before posting, duplicates may be removed
  10. Accounts 7 days and younger will have their posts automatically removed.

Approved Bots


founded 3 years ago
MODERATORS