+ 3

Which methods are more secure while passing datas in php ?

3rd Apr 2018, 5:49 PM
Christian CK
Christian CK - avatar
4 odpowiedzi
+ 2
Honestly, it's fairly easy to intercept either, but POST would be more secure for your typical users than GET. The data being passed with GET is usually easily visible in the URL bar at the top. As you can imagine, you wouldn't want to do anything that needs to be secure via that means.
3rd Apr 2018, 6:43 PM
Fata1 Err0r
Fata1 Err0r - avatar
3rd Apr 2018, 5:51 PM
Emma
0
Post is better
3rd Apr 2018, 6:48 PM
Federico Mariotta
Federico Mariotta - avatar
0
" There are mainly two ways you can pass data: POST method or GET method. >> If u use GET method you are more vulnerable to attacks which is not secure. By Using GET method you can see what values you have passed in your URL bar. since your values/data is visible in the URL bar, It's not secure >> POST is known to be secure way to pass data. Your data will not be visible through it. So which of these are secure? >> Really None of these are secure! So you need to be using 'Prepared Statements' or 'PDO' (Which comes under PHP) to send Queries to Database this prevents SQL injections and Ddos attacks up to some extent where it also depends on your code you have written. please google for more info. Also if u get to know new things let us know. Together We Rise!! ::: Upvote if liked :::
3rd Apr 2018, 9:57 PM
Mr.Cool
Mr.Cool - avatar