One common entry route for hackers is through Wordpress. It is important that website owners keep Wordpress file versions up-to-date. Wordpress releases updates to its software, and these updates plug many of the common issues that allow hackers to gain access to your files. These Wordpress files should be checked for common malware software code, but any other dynamic coded files should also have a thorough check. This includes files coded in PHP, VB.NET, C#, or Javascript.
The first files to check are the Javascript encoded files. Search each file for an embedded “document.write” function. Hackers commonly place this function in Javascript files to write a redirect to the target website. If a document.write command is shown that sends the reader to an IP address or an unrecognizable website, then this is the location of the malware software that needs to be removed.
The other common function used in a hacked script is “base64_decode.” This hides the actual redirect to the hacker’s website, so the change to the website’s code is not so obvious. Check each of your PHP files for this text. Hackers typically place this function at the very bottom of your website code files, so it is not easily found with a quick view of the page.