2
Proper setup with attention to PHP settings will prevent most of it. (ie: set fopen to off etc)
Depending on your host you may have to modify your .htaccess file.
There are many online resources to guide you through that.
And this place used to be pretty quick on the draw to answer questions I'm sure it still is.