Get your own JS.ORG subdomain

Got a cool new javascript project that you want to have a website for, but you don’t want to cough up for a pricey domain and webhosting as it’s really just a labour of love and unlikely to provide any income?  Then I have the perfect solution for you… a free JS.ORG subdomain.

We don’t mind whether it’s a User-, Organization- or Project-Page – as long as you provide some reasonable content!

And it’s super easy to do, in just a few simple steps.

  1. Create a Github Pages site – so you need to sign into Github (or create an account if you don’t already have one) and create a new repository – if it’s for you personally then make it your username (eg. riklewis.github.io), or you can use your project or organisation name here instead.  You can use themes, or a static site generator such as Jekyll, or a simple HTML or Markdown page.
  2. Choose your new subdomain – this needs to be relevant to your new Github Pages URL (eg. riklewis.js.org) – for projects you can use a folder name within this URL (see wiki for more information).
  3. Create a CNAME file with a single line containing the new URL you have chosen (eg. riklewis.js.org) – this is used to allow the DNS mapping from js.org to github.io – publish this into your repository created in step 1.
  4. Go to the “cnames_active.js” file in the JS.ORG repository and make a pull request, adding your new domain into the list in alphabetical order (not at the bottom!). The line should look something like this…
"riklewis": "riklewis.github.io",

And there you go, as long as there’s no naming conflict, your new URL should be live within 24 hours.  Enjoy!

You can get more details at https://js.org (where you can also donate towards their registrar fees, if you’d like to).

Litespeed and Wordfence don’t play nice

Having recently switched web hosting to Krystal, who support Litespeed, I’ve been playing about with the Litespeed Cache plugin for WordPress.  I’ll write about that in more detail another day, but for now, I wanted to talk about what happened when Litespeed and Wordfence (the security plugin I’m currently using) got in a room together. Well, it…

Cloudflare Server-Side Excludes

Cloudflare has a great little piece of functionality called “Server-Side Excludes”, tucked away on the “Scrape Shield” tab.  The idea is that if you have some information that you’d rather not have a suspicious person (or bot!) seeing, but you don’t want to hide the page from them completely, you can just hide the specific…

I would be Flattred

I’ve previous had a Patreon link on my site, for people to support what I do if they would like to.  Turns out that I was really rubbish at keeping it up to date, and whilst I had planned to publish all of my course content there too, you can’t actually do that without a paid…

Pluralsight – Free Weekend

Pluralsight is a great online learning system with really high quality courses that get added to all the time.  I thought I must have written about them before, but looking at my blog posts, I haven’t – this is a travesty! They’re generally very tech-centric, with courses covering every programming language you can think of,…