diff --git a/config.toml b/config.toml index 263306fd..049e496b 100644 --- a/config.toml +++ b/config.toml @@ -87,21 +87,13 @@ disableAliases = true section = ["HTML"] page = ["HTML", "AMP"] -[mediaTypes] - [mediaTypes."application/atom+xml"] - suffixes = ["atom"] - [mediaTypes."application/manifest+json"] - suffixes = ["webmanifest"] - [mediaTypes."text/netlify"] - delimiter = "" - [outputFormats] [outputFormats.RSS] mediaType = "application/rss" - baseName = "feed" + baseName = "feed" # /feed.xml [outputFormats.ATOM] mediaType = "application/atom+xml" - baseName = "feed" + baseName = "feed" # /feed.atom [outputFormats.AMP] mediaType = "text/html" baseName = "amp" @@ -129,6 +121,14 @@ disableAliases = true isPlainText = true notAlternative = true +[mediaTypes] + [mediaTypes."application/atom+xml"] + suffixes = ["atom"] + [mediaTypes."application/manifest+json"] + suffixes = ["webmanifest"] + [mediaTypes."text/netlify"] + delimiter = "" + [sitemap] filename = "sitemap.xml" priority = 0.5 @@ -158,3 +158,9 @@ disableAliases = true lineNumbersInTable = true noClasses = true tabWidth = 4 + +[server] + [[server.headers]] + for = "/**" + [server.headers.values] + Access-Control-Allow-Origin = "*" diff --git a/content/notes/shodan-search-queries/index.md b/content/notes/shodan-search-queries/index.md index 091c21ad..8f627b0d 100644 --- a/content/notes/shodan-search-queries/index.md +++ b/content/notes/shodan-search-queries/index.md @@ -204,7 +204,7 @@ Secured by default, thankfully, but these 1,700+ machines still [have no busines [Shodan Images](https://images.shodan.io/) is a great supplementary tool to browse screenshots, by the way! [๐Ÿ”Ž →](https://images.shodan.io/?query=%22authentication+disabled%22+%21screenshot.label%3Ablank) -{{< image src="images/vnc.png" width="500" alt="Example: Unprotected VNC" caption="The first result right now. ๐Ÿ˜ž" />}} +{{< image src="images/vnc.png" width="500" alt="Example: Unprotected VNC" >}}The first result right now. ๐Ÿ˜ž{{< /image >}} ### Windows RDP [๐Ÿ”Ž →](https://www.shodan.io/search?query=%22%5Cx03%5Cx00%5Cx00%5Cx0b%5Cx06%5Cxd0%5Cx00%5Cx00%5Cx124%5Cx00%22) diff --git a/netlify.toml b/netlify.toml index 9e54c966..1260f21f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -36,7 +36,6 @@ publish = "public" autoLaunch = false - # The most important headers and redirects are specified in the _headers and # _redirects files generated by Hugo. These are additional custom rules. @@ -47,7 +46,7 @@ # ๐Ÿ„ X-Got-Milk = "2%" -# PGP file: open in browser, download correctly +# PGP key: open in browser, download correctly [[headers]] for = "/jarvis.asc" [headers.values] @@ -79,7 +78,47 @@ status = 301 force = true -# Proxy data to Simple Analytics endpoint +# Support ancient RSS subscriptions and links from WordPress era: +[[redirects]] + from = "/feed" + to = "/feed.xml" + status = 301 +[[redirects]] + from = "/rss" + to = "/feed.xml" + status = 301 +[[redirects]] + from = "/index.php*" + to = "/" + status = 301 +[[redirects]] + from = "/blog/*" + to = "/notes/" + status = 301 +[[redirects]] + from = "/archives/*" + to = "/notes/" + status = 301 + +# More miscellaneous mirrors/redirects: +[[redirects]] + from = "/resume" + to = "/resume.pdf" + status = 302 +[[redirects]] + from = "/favicon.ico" + to = "/img/favicon.ico" + status = 200 +[[redirects]] + from = "/apple-touch-icon.png" + to = "/img/apple-touch-icon.png" + status = 200 +[[redirects]] + from = "/keybase.txt" + to = "/.well-known/keybase.txt" + status = 301 + +# Proxy data to Simple Analytics endpoint: [[redirects]] from = "/sa/send.gif*" to = "https://queue.simpleanalyticscdn.com/simple.gif:splat" @@ -97,35 +136,9 @@ to = "https://api.simpleanalytics.io/post" status = 200 -# Support ancient RSS subscriptions and links from WordPress era: -[[redirects]] - from = "/feed" - to = "/feed.xml" - status = 301 -[[redirects]] - from = "/rss" - to = "/feed.xml" - status = 301 -[[redirects]] - from = "/index.xml" - to = "/feed.xml" - status = 301 -[[redirects]] - from = "/index.php*" - to = "/" - status = 301 -[[redirects]] - from = "/blog/*" - to = "/notes/" - status = 301 -[[redirects]] - from = "/archives/*" - to = "/notes/" - status = 301 - -# Proxy these directories from elsewhere to mimic GitHub Pages behavior and +# Mirror these directories from elsewhere to mimic GitHub Pages behavior and # keep this main repository squeaky clean. -# https://github.com/jakejarvis/random-sites +# https://github.com/jakejarvis/random-sites (private) [[redirects]] from = "/y2k/*" to = "https://modest-jackson-d5516b.netlify.com/y2k/:splat" @@ -134,6 +147,10 @@ from = "/hugo-node/*" to = "https://modest-jackson-d5516b.netlify.com/hugo-node/:splat" status = 200 +[[redirects]] + from = "/cli/*" + to = "https://modest-jackson-d5516b.netlify.com/cli/:splat" + status = 200 [[redirects]] from = "/ios-trackers/*" to = "https://modest-jackson-d5516b.netlify.com/ios-trackers/:splat" @@ -143,86 +160,18 @@ to = "https://modest-jackson-d5516b.netlify.com/scrabble/:splat" status = 200 [[redirects]] - from = "/comp20/*" - to = "https://modest-jackson-d5516b.netlify.com/comp20/:splat" + from = "/awesome/*" + to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat" status = 200 [[redirects]] from = "/candies/*" to = "https://modest-jackson-d5516b.netlify.com/candies/:splat" status = 200 [[redirects]] - from = "/awesome/*" - to = "https://modest-jackson-d5516b.netlify.com/awesome/:splat" + from = "/comp20/*" + to = "https://modest-jackson-d5516b.netlify.com/comp20/:splat" status = 200 -# Reorganized static assets; this can probably be temporary: -[[redirects]] - from = "/fonts/inter-*" - to = "/vendor/inter/inter-:splat" - status = 301 -[[redirects]] - from = "/fonts/hack-*" - to = "/vendor/hack/hack-:splat" - status = 301 -[[redirects]] - from = "/twemoji/*" - to = "/vendor/emoji/:splat" - status = 301 -[[redirects]] - from = "/vendor/emoji/twemoji.min.js" - to = "/vendor/emoji/emoji.min.js" - status = 301 - -# More miscellaneous mirrors/redirects: -[[redirects]] - from = "/resume" - to = "/resume.pdf" - status = 302 -[[redirects]] - from = "/license.txt" - to = "/license/" - status = 301 -[[redirects]] - from = "/privacy.html" - to = "/privacy/" - status = 301 -[[redirects]] - from = "/favicon.ico" - to = "/img/favicon.ico" - status = 200 -[[redirects]] - from = "/favicon-*" - to = "/img/favicon-:splat" - status = 301 -[[redirects]] - from = "/apple-touch-icon*" - to = "/img/apple-touch-icon.png" - status = 301 -[[redirects]] - from = "/safari-pinned-tab.svg" - to = "/img/safari-pinned-tab.svg" - status = 301 -[[redirects]] - from = "/android-chrome-*" - to = "/img/android-chrome-:splat" - status = 301 -[[redirects]] - from = "/me_lg.jpg" - to = "/img/me_large.jpg" - status = 301 -[[redirects]] - from = "/me_large.jpg" - to = "/img/me_large.jpg" - status = 301 -[[redirects]] - from = "/me.jpg" - to = "/img/me.jpg" - status = 301 -[[redirects]] - from = "/logo.png" - to = "/img/logo.png" - status = 301 - # H A C K E R M A N ( อกยฐ อœส– อกยฐ) [[redirects]] from = "*/wp-admin/*"