OK If you are using commercial or freely available cgi/php scripts etc... always check either a security site or the authors homepage for updates or news about any vulnerabilities found.
chmod your site directories as so now one else can view directory contents.
Choose a good host who performs regular security checks and patches the latest holes
or if you are hosting yourself patch all holes found in software, and close ports which you do not use