How to make secure code for website? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How to make secure code for website?

Creating website or other software were susceptible from hacking. How to secure our code?

15th Mar 2018, 9:08 PM
Nurman Tajir
Nurman Tajir - avatar
4 Answers
+ 3
In php, a good technique is cleaning all the input using the mysqli_real_escape_string() method before working with the database to lesson the chance of XSS attacks.
15th Mar 2018, 9:37 PM
Ariela
Ariela - avatar
+ 3
Also, use $_POST for all secure information transfer (such as passwords or credit card numbers)
15th Mar 2018, 9:38 PM
Ariela
Ariela - avatar
+ 2
which programming language? Php? Also you should know that no code is completely immune to hacking, but there are ways to make it safer
15th Mar 2018, 9:24 PM
Ariela
Ariela - avatar
+ 2
Yes off course . If we use framework, Someone already provided the secure code but what is the concept.? Off course that is not absolute secure there always be a methode for hack the code
15th Mar 2018, 9:29 PM
Nurman Tajir
Nurman Tajir - avatar