Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions modules/weko-sitemap/weko_sitemap/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,4 @@
SITEMAP_MAX_URL_COUNT = 10000

WEKO_SITEMAP__ROBOT_TXT = """
User-agent: Bingbot
Crawl-delay: 30
"""
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
User-agent: *
Disallow: /admin/
Disallow: /api/
Disallow: /oai
Disallow: /search
Disallow: /items/ranking
Disallow: /items/export
Disallow: /login/
Disallow: /shibauthorizer
Disallow: /Shibboleth.sso
Disallow: /shibboleth-sp
Disallow: /secure/
Disallow: /weko/shib
Disallow: /ping
Disallow: /static
Disallow: /data
Disallow: /records/*/export/json
Disallow: /records/*/export/bibtex

User-agent: Bingbot
Crawl-delay: 30

User-agent: PetalBot
Disallow: /

{{ robot_txt }}

Expand Down
21 changes: 0 additions & 21 deletions scripts/instance.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -701,27 +701,6 @@ WEKO_AUTHORS_IMPORT_TMP_DIR='authors_import'

# Robot txt
WEKO_SITEMAP__ROBOT_TXT = """
User-agent: Bingbot
Crawl-delay: 30

User-agent: *
Disallow: /admin/
Disallow: /api/
Disallow: /oai
Disallow: /search
Disallow: /items/ranking
Disallow: /items/export
Disallow: /login/
Disallow: /shibauthorizer
Disallow: /Shibboleth.sso
Disallow: /shibboleth-sp
Disallow: /secure/
Disallow: /weko/shib
Disallow: /ping
Disallow: /static
Disallow: /data
Disallow: /records/*/export/json
Disallow: /records/*/export/bibtex
"""

ENABLE_COOKIE_CONSENT = True
Expand Down
Loading