Update index.php

This commit is contained in:
Stefan Pejcic 2025-05-28 18:18:49 +02:00 committed by GitHub
parent 4cc2bb3c99
commit 47dd130634
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -31,6 +31,10 @@ $ch = curl_init($targetUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); // -L
//$proxy = 'http://IP_HERE:3128'; // proxy site!
//curl_setopt($ch, CURLOPT_PROXY, $proxy);
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-Forwarded-For: ' . $ip]);
curl_setopt($ch, CURLOPT_RESOLVE, ["$domainOnly:80:$ip"]); // :443 to require ssl