Skip to content

Commit

Permalink
WebHost: fix accidental robots.txt capture (ArchipelagoMW#3502)
Browse files Browse the repository at this point in the history
  • Loading branch information
Berserker66 authored and GameWyrm committed Jul 4, 2024
1 parent 6c2a072 commit a3eb57f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WebHostLib/robots.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
def robots():
# If this host is not official, do not allow search engine crawling
if not app.config["ASSET_RIGHTS"]:
return app.send_static_file('robots.txt')
# filename changed in case the path is intercepted and served by an outside service
return app.send_static_file('robots_file.txt')

# Send 404 if the host has affirmed this to be the official WebHost
abort(404)
File renamed without changes.

0 comments on commit a3eb57f

Please sign in to comment.