Script URL is invalid

'; } $htaccess = ABSPATH . '.htaccess'; $addefend_rules = addefend_extract_from_markers($htaccess, ADDEFEND_HTACCESS_MARKER ); $addefend_rules_added = sizeof($addefend_rules) > 5; $validProxyUrl = preg_match('/.*:\/\/.*\..*\/.*\/.*\/.*\/.*/', $proxyUrl); if ($validProxyUrl) { if ($contentProxy === 'apache') { if (!$addefend_rules_added) { addefend_insert_rules(); } } elseif ($addefend_rules_added) { addefend_remove_rules(); } echo '

Settings saved for: ' . $contentProxy . '

'; } else { if ($addefend_rules_added) { addefend_remove_rules(); } echo '

Proxy URL is invalid

'; } } ?>

AdDefend Integration Parameters

0): ?> = 5): ?>
0): ?> array( 'timeout' => 5, 'ignore_errors' => true ) ); $context = stream_context_create($opts); $testUrlResponseBody = @file_get_contents($testUrl, false, $context); foreach ($http_response_header as $header) { if (strpos($header, 'AdDefend') !== false) { $adDefendIsReached = true; break; } } ?>

Working

Not working

get_var('SELECT script FROM '.ADDEFEND_TABLE_NAME.' WHERE (id = \'1\')'); if ($addefend_script): ?>

Working

Not Working

Not Loaded

Loaded

Not Loaded

Loaded

Not Configured

Configured

  • Active

    Inactive

    Expected behaviour: If the image results in 404, the request will be forwarded to the specified 'Proxy URL'!