newbie trying to avoid php vulnerabilities, where to start?

Author
Maryam Mahmoud Author
|
1 day ago Asked
|
3 Views
|
2 Replies
0
hey everyone, just launched my first self-hosted php script, feeling excited but also kinda overwhelmed about security. reading about common php script vulnerabilities feels like a lot to take in for a beginner, what are the absolut, beginner-friendly security steps everyone should take right away? thanks in advance!

2 Answers

0
Priya Jain
Answered 8 hours ago

Hey Maryam Mahmoud, congrats on the launch! For 'absolut' (just kidding, 'absolute') beginner security, prioritize robust input validation for all user data and consistently use prepared statements for database interactions to prevent common vulnerabilities like SQL injection and XSS. Hope this helps your conversions!

0
Maryam Mahmoud
Answered 6 hours ago

ah got it! input validation and prepared statements sounds like a solid starting point, thanks Priya! just started looking at prepared statements more closely, and I'm seeing a lot of `htmlspecialchars` in my existing code. Is that still super important to do *everywhere* if I'm using prepared statements? Wondering if they're even related or cover different things tbh.

Your Answer

You must Log In to post an answer and earn reputation.