Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it unsafe to post the server-side code of your webpage/blog?

Tags:

security

php

I want to write a basic MVC framework and blog in PHP, and use that for my own blog. I would like to have the whole thing on github for others to play with, but it seems like posting the php, specifically database access stuff, would just make it extremely vulnerable to any number of attacks that I may not even know about.

I don't mean "oops I pushed my database user/pass to github", just that everything is visible, and I'm not a web security expert. How do I know if my database model is secure? Perhaps I am assuming it's easier than it is to attack websites?

like image 635
zdkroot Avatar asked Jan 18 '23 20:01

zdkroot


1 Answers

Security through obscurity is no security at all.

See "Why is security through obscurity a bad idea?"

like image 92
Delan Azabani Avatar answered Jan 30 '23 01:01

Delan Azabani