Skip to content

Block malicious path scanning in Nginx#27

Merged
halfmoon01 merged 1 commit intodevelopfrom
hotfix/nginx-block-sensitive-paths
Feb 23, 2026
Merged

Block malicious path scanning in Nginx#27
halfmoon01 merged 1 commit intodevelopfrom
hotfix/nginx-block-sensitive-paths

Conversation

@halfmoon01
Copy link
Copy Markdown
Collaborator

📌 Summary

Block sensitive path scanning (.git/config, .env, /geoserver) in Nginx that was returning 200 instead of 404.


🔗 Related Issue

Closes #26


🛠 Changes

  • Add location ~ /\.git block → deny all, return 404
  • Add location ~ /\.env block → deny all, return 404
  • Add location /geoserver block → deny all, return 404
  • All rules placed before SPA catch-all try_files

✅ Checklist

  • Code compiles
  • Tests added/updated
  • No console errors
  • Documentation updated
  • CI passes

@halfmoon01 halfmoon01 linked an issue Feb 23, 2026 that may be closed by this pull request
6 tasks
@halfmoon01 halfmoon01 self-assigned this Feb 23, 2026
@halfmoon01 halfmoon01 merged commit 6bdb3a9 into develop Feb 23, 2026
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.

[HOTFIX] Block malicious path scanning in Nginx

1 participant