I have a WordPress site. There is some AdSense code in it which I didn’t add. The code is located in the theme footer.php file, but whenever I upload a new file, the code gets inserted in it all over again.
How can I find which script keeps inserting this code in the file?
Or could it be that the server is infected with some kind of a virus? I’m on a shared host, by the way.
You’ve been hacked. Do not pass go. Do not edit your website further. You must treat all files as compromised and untrustworthy. Contact your hosting provider immediately.