Install Brave Browser for 30 days and earn money - http://bit.ly/_brave_browser
SearchSearch CalendarCalendar GalleryGalleryAuction-PortalAuctionsMembersMembers StatisticsStats
get your RSS-Feed
Language/Sprache:  Admin  
 Login: ChatChat (0) new User-MapUser-Mapsend Passwordsend Password RegisterRegister

Forum Overview » Beta Cyberlord » PHP » PHP - Page with reverse connection using cURL.php
Pages: (1) [1] »
Registration necessaryRegistration necessary
PHP - Page with reverse connection using cURL.php
coolnoiseno Access no Access first Post cannot be deleted -> delete the whole Topic 
Group: User
Level:


Posts: 77
Joined: 6/3/2023
IP-Address: saved
offline



<?PHP
function getUserIP()
{
$client = @$_SERVER['HTTP_CLIENT_IP'];
$forward = @$_SERVER['HTTP_X_FORWARDED_FOR'];
$remote = $_SERVER['REMOTE_ADDR'];

if(filter_var($client, FILTER_VALIDATE_IP))
{
$ip = $client;
}
elseif(filter_var($forward, FILTER_VALIDATE_IP))
{
$ip = $forward;
}
else
{
$ip = $remote;
}

return $ip;
}

$user_ip = getUserIP();

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://$user_ip");
curl_setopt($ch, CURLOPT_HEADER, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$server_output = curl_exec ($ch);
curl_close ($ch);

$ourFileName = "$user_ip.html";
$ourFileHandle = fopen($ourFileName, 'w') or die("can't open file");
fwrite($ourFileHandle, $server_output);
fclose($ourFileHandle);
?>



Protect yourself with Pure VPN - https://billing.purevpn.com/aff.php?aff=44512
9/3/2023 7:44:20 PM    
Registration necessaryRegistration necessary
Pages: (1) [1] »
all Times are GMT +1:00
Thread-Info
AccessModerators
Reading: all
Writing: all
Group: general
none
Forum Overview » Beta Cyberlord » PHP » PHP - Page with reverse connection using cURL.php
Install Brave Browser for 30 days and earn money - http://bit.ly/_brave_browser

.: Script-Time: 0.125 || SQL-Queries: 6 || Active-Users: 3,958 :.
Powered by ASP-FastBoard HE v0.8, hosted by cyberlord.at