QambarRaza.com is now secure

I went on a course of The Best TLS Training and thought i should implement what i learn on my domain. Previously, QambarRaza.com was Grade A on https://www.ssllabs.com/ and Grade ‘F’ on https://securityheaders.com/.

But special thanks to https://scotthelme.co.uk/, i was able to make it Grade ‘A+’ on both security analyser websites.

Its very easy to do, i only spent 5 minutes to achieve this. You can do it to even if you don’t have access to nginx server you can do it via passing headers in PHP like i did:


//If the HTTPS is not found to be "on"
if(!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on")
{
    //Tell the browser to redirect to the HTTPS URL.
    header("Location: https://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]);
    //Prevent the rest of the script from executing.
    exit;
}

header("strict-transport-security: max-age=31536000; includeSubDomains; preload");
header("X-Frame-Options: SAMEORIGIN");
header("X-Content-Type-Options: nosniff");
header("X-XSS-Protection: 1; mode=block");
header("Referrer-Policy: no-referrer");
header("Content-Security-Policy: upgrade-insecure-requests");

And if you want to go one step further you can also submit your website to https://hstspreload.org/ which will make all browsers always open your website in HTTPS but becareful about it as you can break things as your http endpoints will stop working.

Enjoy!

What kind of Tech resources do I need to work on IOT?

I have been asked this question several times. I could give you a diplomatic answer that it depends and it could differ from person to person but in this post i will answer this question in a general sense.

Arduino UNO
Arduino UNO

IoT devices are physical hardware that can connect to the Internet and can collect, exchange data with the network. Also in some cases they can act upon that data to react to the physical world.

So here is a general list that can get you started:

  1. Switch/Router Connected to the internet  (if its a wifi router make sure it can support 2G Frequency)
  2. An Arduino module (For starters i would go for Ardunio UNO)
  3. A Basic Starter kit containing (LEDs, Jumper wires, Breadboard, maybe some sensors)

I will be publishing some youtube videos soon where i would walk through the basics but feel free to search youtube for other tutorials to get you started.

FIOT – Chapter 3 – The Demo

Following is the demo that i presented at the Lambda Lounge.

Slides that i prepared but never presented as audience was seeking more excitement, so i went freestyle.

 

https://docs.google.com/presentation/d/1F3EY5B8HbqHT4hJ4J6G98tbnuzAmoAKYtvthJN9mSWo/edit?usp=sharing

 

Enjoy!