Skip to content

Instantly share code, notes, and snippets.

@osmanmakal
Last active March 19, 2022 19:50
Show Gist options
  • Save osmanmakal/8451f46aafcb9b63f70f2af16979721a to your computer and use it in GitHub Desktop.
Save osmanmakal/8451f46aafcb9b63f70f2af16979721a to your computer and use it in GitHub Desktop.
It allows you to check whether there is an original license for the web hosting service you purchased.
<?php
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://myip.cpanel.net/v1.0/');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$addr = curl_exec($curl);
curl_close($curl);
header('Location: https://verify.cpanel.net/app/verify?ip='.$addr, true, 303);
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment