Chapter 4
Considering PHP Security
IN THIS CHAPTER
Identifying PHP attacks
Stopping cross-site scripts
Hiding your files
Watching for data spoofing
Handling data safely
Web application security is a hot topic these days, and for good reasons. It seems that almost every day, the news contains a story about some company getting attacked and having important data stolen. These breaches are costly — both for the company and for the thousands of customers who have personal information stolen. As a web application developer, it’s your job to put security first in all of your design and coding work. You are the front line in the battle of data security. This chapter will help with that job by first giving you an idea of the types of attacks you need to watch out for, then walking you through how to avoid those attacks with your PHP code.
Exploring PHP Vulnerabilities
To avoid attacks, you first need to know where they'll come from. It doesn’t do any good to barricade the front door, but ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access