Many causes of the occurrence of an iframe injection. The most common is the use of FTP passwords that are easy to guess! Another one is the existence of slit / bug in the software that you install in your account. For example, if you have an older version of WordPress or Joomla, someone will take advantage of cleft / bugs that have to inject an iframe on the files there. So be sure to make the FTP password is not easy to guess and frequently update the software that you install.
If your account is terlanjur terinjeksi iframe then use the following command to cleared from your files. We only give an example on the file index.html or index.php. You can memodifikasinya as needed. Make sure you have membackupnya first before running the command page.
cd /home/username/public_html && find ./ \( -iname ‘index.html’ -o -iname ‘index.php’ \)|while read file; do sed -i ’s/<iframe.*<\/iframe>//g;’ ${file}; done &
Hope this article was helpfull


