Skip to content

nginx: discourage indexing of proxied apps; document Portainer Safe Browsing fix#28

Merged
verzog merged 1 commit into
mainfrom
claude/fix-portainer-security-warning-BhvAC
Apr 21, 2026
Merged

nginx: discourage indexing of proxied apps; document Portainer Safe Browsing fix#28
verzog merged 1 commit into
mainfrom
claude/fix-portainer-security-warning-BhvAC

Conversation

@verzog
Copy link
Copy Markdown
Owner

@verzog verzog commented Apr 21, 2026

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)

  • Serve a restrictive robots.txt at __PATH__/robots.txt (Disallow: /) so crawlers don't index the proxied UI.
  • Add X-Robots-Tag: noindex, nofollow, noarchive on proxied responses.
  • Add baseline security headers: 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

  • Switched the recommended Portainer tag from :latest to :lts.
  • Added a "Google Safe Browsing false-positives" subsection explaining:
    • Request review in Search Console (the only step that actually clears the warning).
    • Don't share the public URL.
    • Remove visitors from the YunoHost permission to put the login behind SSO.

Test plan

  • Install a fresh instance of the app and hit <domain>/<path>/robots.txt — should return User-agent: *\nDisallow: /.
  • curl -I <domain>/<path>/ shows X-Robots-Tag, X-Content-Type-Options, Referrer-Policy, and X-Frame-Options.
  • Portainer still loads and WebSocket console still works (terminal access to containers).
  • Existing deployments upgrade cleanly with no nginx reload errors.

https://claude.ai/code/session_01AkRk51LoHpNoFFumpchS8x

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.
@verzog verzog merged commit d3d4f38 into main Apr 21, 2026
0 of 2 checks passed
@verzog verzog deleted the claude/fix-portainer-security-warning-BhvAC branch April 21, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants