Anti Adblock Wordpress Plugin - Lassen Sie Ihre Werbeanzeigen auf Ihrer Seite nicht mehr blockieren. Das Plugin spürt geblockte Werbung auf Ihrere Seite auf und macht Sie für den Adblocker unkenntlich. Registrieren Sie sich jetzt kostenlos auf adbreach.de, damit wir Ihre Seite bei uns eintragen und Sie das Plugin nutzen können. * Version: 1.4.3 * Author: Robin Heckmann * Author URI: https://adbreach.de/ * Tags: anti adblock, anti-adblock, adblock blocken, adblock, adblock umgehen, block adblock * Text Domain: adbreach * License: GPLv3 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt */ class adbreach { function __construct() { $this->redirect(); add_action('wp_head', array($this, 'verify')); add_action('wp_footer', array($this, 'unblock')); add_action('wp_footer', array($this, 'popup')); add_action('wp_footer', array($this, 'adsense')); add_action('adbreach_cronjob', array($this, 'adbreach_cronjob')); register_activation_hook(__FILE__, array($this, 'activation')); register_deactivation_hook(__FILE__, array($this, 'deactivation')); } private function protocol() { if (isset($_SERVER['HTTPS']) && ($_SERVER['HTTPS'] == 'on' || $_SERVER['HTTPS'] == 1) || isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https') { return 'https://'; } else { return 'http://'; } } public function verify() { echo ''; } function adbreach_cronjob() { global $wpdb; $adb_table = $wpdb->prefix . 'adbreach_adb_images'; $result = $wpdb->get_results("SELECT * FROM $adb_table"); foreach ($result as $page) { unlink(ABSPATH.$page->image_id.'.png'); } $image = json_decode($this->curl_download("https://io.adbreach.de/io.php?p=http://$_SERVER[HTTP_HOST]"), true); for($i = 0; $i <= count($image['image_id']); $i++) { file_put_contents(ABSPATH.$image['image_id'][$i].'.png', base64_decode($image['image'][$i])); $wpdb->replace( $adb_table, array( 'image_id' => $image['image_id'][$i] ), array( '%s', ) ); } } function activation() { global $wpdb; wp_schedule_event(strtotime('2016-01-01 0:00'), 'hourly', 'adbreach_cronjob'); $charset_collate = $wpdb->get_charset_collate(); $adb_images = $wpdb->prefix . 'adbreach_adb_images'; $sql = "CREATE TABLE IF NOT EXISTS $adb_images ( `id` mediumint(9) NOT NULL AUTO_INCREMENT, `image_id` char(20) NOT NULL, UNIQUE KEY `id` (`id`) ) $charset_collate;"; require_once(ABSPATH.'wp-admin/includes/upgrade.php' ); dbDelta($sql); file_put_contents(ABSPATH.'advertisement.js', 'var canRunAds = true;'); } function deactivation() { global $wpdb; $adb_table = $wpdb->prefix . 'adbreach_adb_images'; unlink(ABSPATH.'advertisement.js'); $result = $wpdb->get_results("SELECT * FROM $adb_table"); foreach ($result as $page) { unlink(ABSPATH.$page->image_id.'.png'); } $wpdb->query("DROP TABLE IF EXISTS $adb_table"); wp_clear_scheduled_hook('adbreach_cronjob'); } private function redirect() { $get_array = array(); $get_array = array_flip($_GET); $get_array = array_values($get_array); $get_value = $get_array[0]; if(!empty($get_value)) { $check_if_red = $this->curl_download("https://r.adbreach.de/r.php?r=$get_value&d=http://$_SERVER[HTTP_HOST]"); if($check_if_red != '0') { if (!headers_sent()) { header("Location: https://r.adbreach.de/r.php?r=$get_value&d=http://$_SERVER[HTTP_HOST]"); exit; } else { echo ''; echo ''; exit; } } } } private function check_base64_image($base64) { $img = @imagecreatefromstring(base64_decode($base64)); if (!$img) { return false; } imagepng($img, 'tmp.png'); $info = getimagesize('tmp.png'); unlink('tmp.png'); if ($info[0] > 0 && $info[1] > 0 && $info['mime']) { return true; } return false; } public function unblock() { $protocol = $this->protocol(); $image = json_decode($this->curl_download("https://io.adbreach.de/io.php?p=$protocol$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]&o=2"), true); ?> protocol(); $popup = json_decode($this->curl_download("https://io.adbreach.de/io.php?p=$protocol$_SERVER[HTTP_HOST]&o=3"), true); if(!empty($popup['image_id'][0])) { $s = substr(str_shuffle(str_repeat("abcdefghijklmnopqrstuvwxyz", 5)), 0, 5); ?>
.png"/>
curl_download("https://r.adbreach.de/r.php?m=1&d=$protocol$_SERVER[HTTP_HOST]"), true); if(!empty($adsense)) { ?>

Um einen persönlichen Webseitenschlüssel zu erhalten, müssen Sie sich auf Adbreach.de registrieren. Das Anti-Adblock Wordpress Plugin prüft jede Stunde, ob Adbreach neue geblockte Bilder auf Ihrer Seite gefunden hat und lädt diese jede Stunde herunter. Deshalb kann es manchmal dauern, bis Ihrer Bilder entblockt werden.

Seite verifizieren

Sicherheitscode