Ai ceva de facut in cod, design sau animatie si nu stii cum? Trimite-ne mail si-ti vom face tutorial ce va rezolva problema ta.
Documentatii pentru toate nivelele, de la incepatori la avansati, dar si pentru cei ce au nevoie doar de o 'bucata de cod'
O modalitate simpla de a proteja impotriva injectarii de cod
+ Bookmark-uri
Autor: Cristea Iulian
1 din 9 voturi
Voteaza acest articol
Tutorial not available for this language. Only english version.
A simple way to protect against code injection is that you can verify variables before entering them into database for a few words that can damage your database.
The most dangerous words are: select, update, insert and delete, those that can retrieve, modify or insert data into your application.
You can either replace these words resulting a dead code or deny them if used.
Here is the code that you can use, as example for a username field: