How To Remove Unwanted Links That Appear On Every Pages On Your WordPress Website
Do you experience a surge of traffic from unwanted keywords? Or maybe you found that unwanted outbound links exist on every page on your website? Then you need to read this post thoroughly.
The symptoms: In my case, I found that unwanted keywords are ranking well on my comics website. The keywords are related to adult keywords while the website is for kids.
I checked and confirmed that I don’t have any page related to those keywords and Google didn’t index any unwanted pages. To check this I use command site:websitename.com on Google search page. Make sure Google didn’t index unwanted web pages.
The problem: Later I found that all pages on the website contain external links to gambling related websites. This is what it looks like:
My steps to remove the link:
- make a backup of the website so I can troubleshoot without compromising the actual website, in this case, I make a staging website.
- On the staging website:
- I deactivated all plugins —> Failed the links still exist.
- I changed the WordPress theme —> Failed the links still exist.
- I reinstalled the WordPress core files form within the dashboard —> Failed the links still exist.
- I accessed files under
In total there are 3 unknown folders, and I deleted them all:
Notes: the plugins are invisible until I delete folder autologin-links and my-wp-brand. When I deleted both folders above the WP Headers and Footers menu was shown under the settings menu. Now I can see how they plant the links.
How to prevent this from happening in the future?
I changed the administrator password and install the 2-factor authentication from Plugin Contributors
As alternative you can also activate 2FA from the Wordfence plugin.