Coat your website with armor, protect yourself against the most common threats and vulnerabilities. Understand, with examples, how common security attacks work and how to mitigate them. Learn secure practices to keep your website users safe.
Let's parse that.
Coat your website with armor, protect yourself against the most common threats and vulnerabilities. Understand, with examples, how common security attacks work and how to mitigate them. Learn secure practices to keep your website users safe.
Let's parse that.
What's included in this course:
Authentication, authorization, auditing, availability, confidentiality and integrity. If any of these principles are compromised on your site, your site is at risk
A few definitions - risk, threat, vulnerability and attack. Reasons why websites are at risk. Known and unknown risks.
Start off with a well known security attack - script injection can wreak havoc on your site.
A simple but realistic example of how XSS could affect your site
Persistent, reflected and DOM based XSS. The differences are subtle but important.
How can you protect yourself from script injection? What are the good practices to follow?
Some more techniques by which input can be cleaned up
Check for patterns in your input. Only allow those patterns which seem legit!
PHP offers a whole bunch of ways to validate input, some more here.
What else can you do to make sure user input is safe to use?
Specify default directives so things are less onerous and learn to use wildcards
Inline code and the eval() functions usually spell trouble for your site
If you must use inline code, the Content Security Policy header gives you a few outs.
What makes a good password? Set some constraints so your users are forced to choose strong passwords.
Do not store passwords in plain text. When it comes to security you cannot trust even those who work with you.
An example using a secure token to verify that the request comes from a trusted site.
If you have a Windows machine follow the instructions in this lecture to get up and running with Apache server and PHP!
Enabling MySQL for Windows is so simple it takes all of 23 seconds:-) Set up a new user and password to access the database, create tables etc from your PHP script.
If you have a MAC machine follow instructions in this class to get started with PHP. Apache comes pre-installed on a MAC you just have to enable PHP and you're ready to go!
Download and install MySQL for the MAC
Set up a user name and password to connect to MySQL and use the MySQL Workbench, a user interface, to manage the database
One last bit to do before PHP can talk to MySQL
OpenCourser helps millions of learners each year. People visit us to learn workspace skills, ace their exams, and nurture their curiosity.
Our extensive catalog contains over 50,000 courses and twice as many books. Browse by search, by topic, or even by career interests. We'll match you to the right resources quickly.
Find this site helpful? Tell a friend about us.
We're supported by our community of learners. When you purchase or subscribe to courses and programs or purchase books, we may earn a commission from our partners.
Your purchases help us maintain our catalog and keep our servers humming without ads.
Thank you for supporting OpenCourser.