3
-2. Delete 'install' directory
-1. Chmod '404' mainfile.php
-0. Chmod others properly
3. Try to move '777' stuffs out of your public_html
4. Remove unused files (e.g. xmlrpc.php, pda.php)
5. Use good modules
6. Use .htaccess properly
/.htaccess
Options -Indexes
<FilesMatch "(mainfile|header|footer).php">
Order allow,deny
Deny from all
FilesMatch>
/cache/.htaccess, /class/.htaccess, /kernel/.htaccess, /language/.htaccess, /templates_c/.htaccess
Order allow,deny
Deny from all
/images/.htaccess, /modules/.htaccess
Options -Indexes
/include/.htaccess
Order Deny,Allow
Deny from all
<FilesMatch ".(js|css)$">
Allow from all
FilesMatch>
/themes/.htaccess
Order Deny,Allow
Deny from all
<FilesMatch ".(gif|jpe?g|png|js|css|swf)$">
Allow from all
FilesMatch>
/uploads/.htaccess
Order Deny,Allow
Deny from all
<FilesMatch ".(gif|jpe?g|png)$">
Allow from all
FilesMatch>