My website was once hacked by a hacker from Saudi Arabia. He managed to get into the server and replaced the index.php file with his own index file. I don’t know how he can get into my server but I have learnt many things from that bad experience.
![]()
Always upgrade your WordPress to the latest version – It is really recommended to upgrade your WordPress to the latest version. It is because each new version contains bug fixes and patches to vulnerabilities that exist in the older version. So make sure that you upgrade your WordPress when the latest version is out.
Files and folders permission – In WordPress, we need to set permission to certain files or folders to make it works properly. Especially when using plugins that need special CHMOD 777 permission. When you doing this, make sure that you give permission to the correct files and folders only. We don’t want other peoples can upload and run script through our server, right?