Skip to content

Instantly share code, notes, and snippets.

@MrHallows
Created December 18, 2020 11:23
Show Gist options
  • Save MrHallows/06263a677969270e6a799ecacfb52dc4 to your computer and use it in GitHub Desktop.
Save MrHallows/06263a677969270e6a799ecacfb52dc4 to your computer and use it in GitHub Desktop.
A slightly more robust bot deterrent.
# This file should prevent the site/server from being indexed by search engines.
User-agent: * # match all bots
Disallow: / # tell them to fuck off
User-Agent: Googlebot
Disallow: /
User-Agent: Googlebot-Mobile
Disallow: /
# Adsense
User-Agent: Mediapartners-Google
Disallow: /
User-Agent: msnbot
Disallow: /
User-Agent: bingbot
Disallow: /
# Blekko
User-Agent: ScoutJet
Disallow: /
User-Agent: Yandex
Disallow: /
User-agent: baiduspider
Disallow: /
User-agent: DuckDuckBot
Disallow: /
# CommonCrawl
User-agent: ccbot
Disallow: /
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment