Advanced
Website and E-Commerce Security
Build a secure web shop, find and fix weaknesses, and deploy it safely
Build a web shop that holds up to attack. On your own computer you add each part of a small online store securely, from sign-in and input handling to payments, deployment and monitoring, learn to spot common mistakes in code, and review the finished shop before launch. For web developers and site administrators, with South African law throughout.
How this course works
This course teaches you to build a website or web shop that holds up to attack, to find and fix the security weaknesses that matter most, to put the site online safely, and to prepare it to detect and respond to attacks. You work on one shop the whole way through. In Module 0 you set up a small, sound starting version of it on your own computer. In Module 1 you work out what it must defend and where. In each of Modules 2 to 7 you build the next part of it securely, by hand, and check that every control you add really works, and in Module 8 you review the finished shop as a whole.
It is for web developers, site administrators and e-commerce owners who already work with the web. You should be comfortable with HTML, HTTP, web forms, a little JavaScript and a database, to about the level of Front-End Web Development with JavaScript (WEB-201). Full-Stack Web Development with PHP and Laravel (WEB-301) is helpful but not needed. A short readiness check at the start tells you where to brush up before you begin. You do not need either course to take this one.
The practice shop is written in plain PHP and uses PHP's built-in web server and a single-file SQLite database, so you install almost nothing. Writing each control yourself shows you how it works, which a framework would hide. To learn to spot weaknesses in other people's code, you also review short fragments from a developer's first draft, each beside its corrected version, and write the fix yourself. Everything is defensive: you work only on your own practice shop or on systems you own or are allowed to test, and every task has a full model answer.
The course is about 125 hours of study. Module 0 sets up the shop, is lighter and has no assessment. Each of the eight modules after it is about a week, roughly 15 hours. A module opens with a short presentation, then a video in all but one module, the lesson, a summary, flash cards, practical work on your shop, and an assessment. Each part is a panel: select its heading to open it or close it. Work through them in order. After the eight modules come a review that ties them together and a final assessment that draws on all of them.
The eight modules take you through threat modelling the shop, sign-in and access control, input and output and injection, the common weaknesses in the current OWASP Top 10, payments and orders, secure deployment, monitoring and incidents, and a full pre-launch review of the shop you have built. Along the way you meet the law a South African online shop works under, above all the Protection of Personal Information Act 4 of 2013 and its duties when customer data is at risk.
You follow Table Bay Online, a small Cape Town online retailer getting ready to relaunch its shop. Table Bay Online and everyone in it are invented for this course, and so is every account, order, message, website address, bank detail and amount in the examples. Real standards and laws, such as the OWASP Top 10 and POPIA, are named only for what they themselves say.
You keep everything you make: a threat model, a working shop with its security controls and the checks that prove them, a deployment plan, an incident plan and a launch review report you could adapt for a real site. If you later want the customer's side of shopping and banking online safely, Online Banking and Shopping Safety: Scams and SIM Swaps (SEC-021) covers it, and the POPIA duties here are treated in full in POPIA Training for Employees (SEC-007) and Reporting a POPIA Data Breach: Security Compromises (SEC-014). This course goes deeper on the technical, seller's side than any of them, and you do not need them for it.
How you are graded
Your module assessments count for 50% of your final mark and the final assessment for the other 50%.
- First Class (A)75–100%
- Second Class (B+)70–74%
- Second Class (B)60–69%
- Third (C)50–59%
- Fail0–49%