Title: Double-slash URLs return 500 instead of 404 · Issue #131 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Double-slash URLs return 500 instead of 404 · Issue #131 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Double-slash URLs return 500 instead of 404 · Issue #131 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Description URLs with a double-slash prefix (e.g. //lala.php, //wp-admin/images/wp-conflg.php) return HTTP 500 instead of 404. These are all bot/attack probes but they inflate the 5xx error count in logs and monitoring. Evidence From pro...
Open Graph Description: Description URLs with a double-slash prefix (e.g. //lala.php, //wp-admin/images/wp-conflg.php) return HTTP 500 instead of 404. These are all bot/attack probes but they inflate the 5xx error count i...
X Description: Description URLs with a double-slash prefix (e.g. //lala.php, //wp-admin/images/wp-conflg.php) return HTTP 500 instead of 404. These are all bot/attack probes but they inflate the 5xx error count i...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/131
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Double-slash URLs return 500 instead of 404","articleBody":"## Description\n\nURLs with a double-slash prefix (e.g. `//lala.php`, `//wp-admin/images/wp-conflg.php`) return HTTP 500 instead of 404. These are all bot/attack probes but they inflate the 5xx error count in logs and monitoring.\n\n## Evidence\n\nFrom production logs on melvin.me (last 7 days):\n- ~2,130 total 5xx responses\n- **100% are double-slash attack probe URLs** — zero real 5xx errors\n- Typical URLs: `//about.php`, `//cgi-bin/index.php`, `//wp-includes/js/dist/`, `//class.php`\n\n## Expected behavior\n\nThese should return 404 (not found), not 500 (server error).\n\n## Likely cause\n\nThe double-slash prefix (`//`) is probably causing a path resolution error in the resource handler or filesystem layer, resulting in an uncaught exception rather than a clean \"not found\" response.\n\n## Impact\n\n- Low severity — only affects attack probes, no real user impact\n- Noisy 5xx metrics in monitoring/analytics\n- Simple fix: normalize or reject double-slash paths early in the request pipeline","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-02-24T20:05:52Z","url":"https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/131"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ac8d36cd-f3a2-4808-3565-a6ee6c26392d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D776:263885:9F9B7C:C9E457:6B0398D5 |
| html-safe-nonce | 92a3cff752ac1976ee3abbe8779de65c01dc18faf5f50b0c9559086833e217ef |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzc2OjI2Mzg4NTo5RjlCN0M6QzlFNDU3OjZCMDM5OEQ1IiwidmlzaXRvcl9pZCI6IjI2Njc2NzEwNDA1MDY5NjAwODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | b3b4f96b206e812d1e40ffa088378a483816243baf44fbde9a24eafdb5e66337 |
| hovercard-subject-tag | issue:3985585415 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/131/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3964e56120bb888cf43e613f83eaa00e8577103eeced733e1772a2de24e7cd05/JavaScriptSolidServer/JavaScriptSolidServer/issues/131 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3964e56120bb888cf43e613f83eaa00e8577103eeced733e1772a2de24e7cd05/JavaScriptSolidServer/JavaScriptSolidServer/issues/131 |
| og:image:alt | Description URLs with a double-slash prefix (e.g. //lala.php, //wp-admin/images/wp-conflg.php) return HTTP 500 instead of 404. These are all bot/attack probes but they inflate the 5xx error count i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width