Securing boyet.com, part 2: secondboyet

Just a quick update after starting this series a couple of months ago: secondboyet.com is now secure and, even better, gets an A+ from securityheaders.com. Even, gasp, the Content Security Policy.

I will fully admit here that, because secondboyet.com is a pure static site (to remind readers who are unfamiliar with this, the site is generated using CityDesk, a well-dead-and-pushing-up-the-daisies-but-still-working app for creating blogs and websites), all I had to do was a cycle of visiting the site, making a note of all the security errors in the browser console, fixing them, and then repeat ad nauseam until it all passed.

Luckily for me the code that the site used to show when I was talking about algorithms and implementing them (here’s one on calculating π) was nearly always shown un-themed, and there were only six posts with code which used the color theme I had in Visual Studio. And which used style attributes in elements. Which, in turn, needed to be reset to use class attributes, together with a small update to the CSS file to include them.

Apart from that, pretty simple, if tedious.

And then I discovered that S3 is case-sensitive, all the time. This particular issue has never raised its head for me on my other AWS sites, and, although the links within the site would work just perfectly, my redirects from boyet.com would sometimes work and, then, sometimes not. Since the permanent redirects are important, it seems that I shall have to reset all of the folders and posts on the new site to lowercase, and alter the redirect code as well. Or, better perhaps, write a bit of code that runs on a 404 error and redirects to the correctly cased URL. Mmm, decisions, decisions.

Locks on Bridge - banner

Loading similar posts...   Loading links to posts on similar topics...

No Responses

Feel free to add a comment...

Leave a response

Note: some MarkDown is allowed, but HTML is not. Expand to show what's available.

  •  Emphasize with italics: surround word with underscores _emphasis_
  •  Emphasize strongly: surround word with double-asterisks **strong**
  •  Link: surround text with square brackets, url with parentheses [text](url)
  •  Inline code: surround text with backticks `IEnumerable`
  •  Unordered list: start each line with an asterisk, space * an item
  •  Ordered list: start each line with a digit, period, space 1. an item
  •  Insert code block: start each line with four spaces
  •  Insert blockquote: start each line with right-angle-bracket, space > Now is the time...
Preview of response