-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
le="color: #000000"><?php 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
le="color: #000000"><?php Order allow,deny Deny from all
/images/.htaccess, /modules/.htaccess
le="color: #000000"><?php Options -Indexes
/include/.htaccess
le="color: #000000"><?php Order Deny,Allow Deny from all <FilesMatch ".(js|css)$"> Allow from all </FilesMatch>
/themes/.htaccess
le="color: #000000"><?php Order Deny,Allow Deny from all <FilesMatch ".(gif|jpe?g|png|js|css|swf)$"> Allow from all </FilesMatch>
/uploads/.htaccess
le="color: #000000"><?php Order Deny,Allow Deny from all <FilesMatch ".(gif|jpe?g|png)$"> Allow from all </FilesMatch>