What to do if a site is infected or hacked?
- If you use a CMS, for example, Worpress, Joomla, DLE, follow the updates, keep the versions of the CMS and their plugins up to date. [quote]Please note that an outdated version of the CMS or plugins is the most common cause of website infections and hacks.[/quote] - Change administrator passwords on the site. - Check your computer for viruses. - Download a backup copy of the site to your computer and check it with an antivirus. - AI-Bolit can also be a useful tool. It can search for viruses, redirects to third-party sites, doorways, code for link exchanges, directories open to everyone, and so on. After checking, the script will display a list of suspected malicious inclusions, which can be checked and eliminated manually by editing the source codes of the site files. - Check the access logs for extraneous requests. - Check the CMS temporary directories and directories where file uploads are allowed (tmp, cache, images, uploads, user_files, etc.) for extraneous files. - The best scheme for restoring a site after a hack is to block visitor access to it, find the cause of the hack, restore the site from a backup copy (this will eliminate any changes to the site that an attacker could make), update the CMS, making sure that the vulnerable component is also updated, and then open access to the site again.