Hi, my sites are getting hacked very frequently. I am spending my valuable time on fixing these issues the hacker somehow logging into my admin panel and changed the admin username and passwords, emails, etc. and replaces the files and puts his name on it Can you please help/guide me out on how to well protect my sites? Also, what permission settings i need to set for each folders/files, etc. Thanks
Definitely upgrade to the latest version of WP. Also, make sure your password is something no one will guess.
If you have just wordpress, I suggest to remove all files (excluding wp-contents folder), upload wordpress files/folders and check all the files present in wp-contents folder. If you find any suspicious files, remove them.. Also change all your password including mysql user. In addition to this, scan the system from where you are accessing your blog. Now a day, it is very common to steal password using keylogger, spyware, trojan etc. Kailash