Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom robots.txt to block indexing /user and AI bots #55

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

thepsalmist
Copy link
Contributor

This PR creates a custom robots.txt overriding CKAN's default robots.txt
We'd like to block indexing &/ crawling on /user and block generic AI bots not in Cloudflare's Verified bot's list

@thepsalmist thepsalmist self-assigned this Jan 8, 2025
@thepsalmist thepsalmist requested a review from a team January 9, 2025 06:14
Copy link
Member

@kilemensi kilemensi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍🏽 ... based on the default robots.txt link you shared, shouldn't we just be overriding specific blocks (all_user_agents, additional_user_agents, etc.) rather than creating a completely new robots.txt file?

Disallow: /


# Generatedy by RoboShield (https://roboshield.trustlab.africa)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RoboShield FTW!

Disallow: /user/

# Amazonbot
User-agent: Amazonbot
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comparing to other sites, we may be missing some crawlers
The Guardian, Washington Post, BBC, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants