Skip to content

Instantly share code, notes, and snippets.

@askwpgirl
Last active February 2, 2025 16:39
Show Gist options
  • Save askwpgirl/04ab9c504586f6680174d8f228b7c8df to your computer and use it in GitHub Desktop.
Save askwpgirl/04ab9c504586f6680174d8f228b7c8df to your computer and use it in GitHub Desktop.
Robots.txt for The Events Calendar
The Events Calendar can drive up huge amoounts of CPU by generating tons of worthless URLs that bots try to call.
Following is a robots.txt file that can combat these excessive server hits from Google and Facebook bots.
Note, this also blocks The Events Calendar Categories which you may or may not want to do.
User-agent: *
Crawl-delay: 3
Disallow: /wp-login.php
Disallow: /trackback
Disallow: /feed
Disallow: /tag
Disallow: /page/
Disallow: */comments
Disallow: ?replytocom*
Disallow: */comments-page-*
Disallow: */trackback
Disallow: */feed
Disallow: */comments
## For Events Calendar
Disallow: *post_type=tribe_events*
Disallow: *hide_subsequent_recurrences=*
Disallow: *tribe-bar-date=*
Disallow: *tribe-venue=*
Disallow: *eventDisplay=*
Disallow: *eventDate=*
Disallow: *paged=*
Disallow: *pagename=*
Disallow: *shortcode=*
Disallow: *ical=*
Disallow: *outlook-ical=*
Disallow: *related_series=*
Disallow: *tribe_geofence=*
Disallow: *tribe_organizer=*
Disallow: /events/tag/
Disallow: /events/list/
Disallow: /events/category/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment