]*)>#i', '', $body, 1 ); } $proxyBase = $_SERVER['PHP_SELF'] . '?proxy=1&domain=' . urlencode($domain) . '&ip=' . urlencode($ip) . '&scheme=' . urlencode($scheme) . '&path='; $body = preg_replace_callback('/(href|src)=["\']([^"\']+)["\']/i', function ($m) use ($proxyBase, $domain, $scheme) { $attr = $m[1]; $url = $m[2]; if (strpos($url, 'data:') === 0 || strpos($url, 'mailto:') === 0 || strpos($url, 'tel:') === 0 || strpos($url, '#') === 0) { return $m[0]; } if (preg_match('#^https?://' . preg_quote($domain, '#') . '(.+)$#i', $url, $match)) { return $attr . '="' . htmlspecialchars($proxyBase . urlencode($match[1]), ENT_QUOTES) . '"'; } if (strpos($url, '/') === 0) { return $attr . '="' . htmlspecialchars($proxyBase . urlencode($url), ENT_QUOTES) . '"'; } return $m[0]; }, $body); } echo $body; exit; } ?> Skip DNS Website Preview

Skip DNS Website Preview

If the target server returns 403, that means the server/WAF is blocking proxy requests. In that case only a hosts-file test will be fully reliable.