Website and E-Commerce Security is a hands-on, advanced course for people who build or run websites and online shops. You build one web shop securely, part by part, from its sign-in to its payments to the server it runs on, and you finish able to review a real site before it goes live.
You work on a practice shop that stands in for a small South African online retailer, Table Bay Online. You set up a sound starting version on your own computer in Module 0, using only PHP and a single-file database, so there is almost nothing to install. Then you model the threats it faces, build each further part securely by hand, one module at a time, checking that every control works, and finally review the whole shop before it goes live. To learn to find weaknesses in other people's code, you review short fragments from a developer's first draft, each beside its corrected version, and write the fixes. Every task has a full model answer, and everything is defensive: you work only on your own practice shop or on systems you own or are allowed to test.
Who this course is for
- Web developers who want to write and review secure code with confidence.
- Site administrators who look after a website or web shop day to day.
- E-commerce owners with technical skills who want to understand and check their own shop.
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 required, and this course goes further than its security module.
What the course covers
| Module | What you learn to do |
| 0. Set up the practice web shop | Set up a sound starting version of the shop on your own computer. |
| 1. Threat modelling a web shop | Map the shop's assets, data flows and trust boundaries, and decide its controls. |
| 2. Sign-in, sessions and access control | Build safe password storage, sessions and checks on who may do what. |
| 3. Input, output and injection | Validate input, encode output, use prepared statements and accept uploads safely. |
| 4. Common weaknesses | Work through the current OWASP Top 10, request forgery, headers and safe configuration. |
| 5. Payments and orders | Use a hosted payment page, verify webhooks, and keep card data out of scope. |
| 6. Secure deployment | Handle secrets and dependencies, serve over TLS, and set safe permissions and backups. |
| 7. Monitoring and incidents | Log and alert on what matters, respond to an incident, and meet POPIA's duties. |
| 8. The pre-launch review | Review the whole shop, clear up what remains, and write its launch review report. |
After the eight modules come a review module and a final assessment that draws on all of them.
What you can do at the end
You can find and fix common security weaknesses in a website or web shop, deploy it securely, and prepare it to detect and respond to attacks. You keep 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 can adapt for your own work.