My greeting to all the users of this discussion forum.
I am new in this forum community and starting with the first post I would like to ask all the experience and the senior member of the forum that , how I can save any website from virus effects. Do I need to place any type of code with the coding. What is the main reason behind this?
I am afraid that depends on the programming language ( For PHP visit www.php.net/, you'll find there a lot of useful information) used to write your code, but basically you have to follow the OOP (object orientated programming) guiding lines and use strong passwords.
If your website request users to create an account in order to access some sections/ features, make sure you implement a Captcha section, as account creating bots are very annoying.
Finally, DDOS attacks are very rare and need a lot of resources, so I don't think you should worry about this. The protection needed against this type of attacks is very expensive too.