Forum Moderators: phranque
But a host will issue you will passwords and access details and passwords, that will allow you access to the server and their network. It is then upto you to make sure that these details are kept secure and that you don't use easy to guess passwords.
Then it comes to the security of you website. As the programmer you need to make sure you put the safe guards in place to ensure that users/hackers don't gain access to areas you don't want either by accident (users) or on purpose (hackers).
Things like sql Injection are worth looking into. I have just spent some time testing my own site about this sort of attack, an have tightened up the code.
For example, if you aren't using htmlspecialchars(), etc., on things that get outputted back to a page, what would happen if you were to put:
"; include("/etc/passwd");
?
The other big one, as Red_Eye said, is SQL injection.
There are plenty of resources on preventing it if you Google around, but basically if you know enough to code SQL, think about what happens when you enter more through your website interface.
J.
</textarea> into the input field for the shoutbox, followed by any HTML, CSS, JS, etc., that you choose. Effectually gives full access to the page; a big no-no in my opinion.
what can a programmer do on the coding end?
Take an absolutely unbending approach to data validation and assume that *all* user supplied data is bad until programatically proven otherwise.
I did an application code review recently and found that none of the user supplied data was validated and so I was able to get right past security with sql injection. You would not believe what type of information I had access to and I could have easily deleted tables and data.