I have create a small social network with eCommerce and blog etc. I have create the site with PHP and JavaScript. Fully hand code and no plugin. I didn't upload it because of security. This is my first website and I have also create the database. Now my question is what is the security I have to look and How to protect from all kind of attacks? If there is any tutorial or book for it, give me this link.
Asked
Active
Viewed 1,357 times
-3
-
1google.com, sorry, but there are so many tutorials, books and information about this topic that I can't even begin to believe you have even tried looking for it. – JimL Jun 17 '13 at 14:59
-
1This is a question that has already been asked too many times... e.g. /questions/60174/how-to-prevent-sql-injection-in-php – Menelaos Jun 17 '13 at 15:00
-
meewok - your link is not opening – Krishna Torque Jun 17 '13 at 15:06
-
It's the top link over in the **Related** sidebar. – Barmar Jun 17 '13 at 15:06
-
Oops:) http://stackoverflow.com/questions/60174/how-to-prevent-sql-injection-in-php?rq=1 – Menelaos Jun 17 '13 at 15:08
-
Thank you very much all of you. – Krishna Torque Jun 17 '13 at 15:09
1 Answers
0
For SQL injection, use PDO properly and hacking is a very broad topic and there are tons of ways to hack a website. Check out OWASP.
And if it's your first website, I don't recommend using it as a real eCommerce website because you have a hell of a lot to loose if you get hacked.

Touch
- 1,481
- 10
- 19
-
Also look into a paypal plugin, and then you wont really have to worry too much about getting your bank account hacked... paypal will secure the plugin for you – pattyd Jun 17 '13 at 15:17
-
That first sentence really doesn't make sense: "Use PDO properly and for hacking"... what? – pattyd Jun 17 '13 at 15:18
-
I mean something like "binding parameters" instead of using PDO like this **$stmt = pdo->query("SELECT * FROM someTable WHERE userId={$_POST['id']}");** Oh... and I am making an edit. I see what you mean. – Touch Jun 17 '13 at 15:21
-
1Thank you guys. I would like to use paypal but they charge for transaction – Krishna Torque Jun 17 '13 at 19:04
-