An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
May 27, 2022 07:46 pm GMT
Original Link: https://dev.to/mxglt/where-can-i-find-regex-to-prevent-code-injection-2m65
Where can I find regex to prevent code injection?
Recently, I discuss a lot about security, especially about code injection. And in these discussions, we talked a lot about regex are the only way to check if a string contains malicious code.
Curious as I am, I tried during hours to find some regex which can check if the string contains (one of them, not a big regex which can check all the cases) :
- SQL
- HTML
- Javascript
I only find for SQL, but it was on a random comment online, not even a post.
So, do you know where can I find these kind of regex?
Thanks a lot for your help!
Original Link: https://dev.to/mxglt/where-can-i-find-regex-to-prevent-code-injection-2m65
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To