Skip to content

Commit

Permalink
Block AI Crawlers (#75)
Browse files Browse the repository at this point in the history
<!-- LIST CHANGES HERE -->
  • Loading branch information
norwd authored Nov 21, 2024
2 parents 1d77f55 + 0261ed9 commit 0c94c97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ jobs:
- name: "Generate a robots.txt file"
run: |
tee robots.txt << EOF
# Block AI Crawlers (see: https://github.com/ai-robots-txt)
$(gh api '/repos/ai-robots-txt/ai.robots.txt/contents/robots.txt' --jq '.content | @base64d')
# List of pages and files
Sitemap: ${{ steps.configure-pages.outputs.base_url }}/sitemap.txt
EOF
Expand Down

0 comments on commit 0c94c97

Please sign in to comment.