nginx: discourage indexing of proxied apps; document Portainer Safe Browsing fix#28
Merged
Merged
Conversation
Google Safe Browsing periodically flags Portainer logins as phishing. Serve a restrictive robots.txt at the app subpath and set X-Robots-Tag noindex/nofollow so crawlers don't feed the classifier. Add baseline security headers (X-Content-Type-Options, Referrer-Policy, X-Frame-Options). Document the Search Console review step and the permission-restriction workaround in DOCKER_IMAGES.md.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Google Safe Browsing periodically flags Portainer instances as "deceptive" because its login page trips generic phishing heuristics. These changes reduce recurrence and document the actual fix (a Search Console review).
nginx template (
conf/nginx.conf)robots.txtat__PATH__/robots.txt(Disallow: /) so crawlers don't index the proxied UI.X-Robots-Tag: noindex, nofollow, noarchiveon proxied responses.X-Content-Type-Options: nosniff,Referrer-Policy: no-referrer,X-Frame-Options: SAMEORIGIN.These apply to every container deployed with this package, which is appropriate — admin UIs and self-hosted apps proxied through this template should not be indexed.
DOCKER_IMAGES.md:latestto:lts.visitorsfrom the YunoHost permission to put the login behind SSO.Test plan
<domain>/<path>/robots.txt— should returnUser-agent: *\nDisallow: /.curl -I <domain>/<path>/showsX-Robots-Tag,X-Content-Type-Options,Referrer-Policy, andX-Frame-Options.https://claude.ai/code/session_01AkRk51LoHpNoFFumpchS8x