Manage licenses for your Python, C#, PHP, and Node.js applications with
ease.
Free, open-source, and unlimited.
Use requests to validate your license key.
import requests
def validate_license(project_secret, license_key):
url = "https://lusobras.meusuperbot.top/api/validate"
payload = {
"project_secret": project_secret,
"license_key": license_key,
# Optional: "ip": "CLIENT_IP",
# Optional: "domain": "CLIENT_DOMAIN"
}
try:
response = requests.post(url, json=payload)
data = response.json()
if response.status_code == 200 and data['valid']:
print("License Valid:", data['message'])
return True
else:
print("License Invalid:", data['message'])
return False
except Exception as e:
print("Error validating license:", e)
return False
# Usage
validate_license("YOUR_PROJECT_SECRET", "LIC-XXXX-XXXX")
Use HttpClient in C#.
using System;
using System.Net.Http;
using System.Text;
using System.Text.Json;
using System.Threading.Tasks;
public class LicenseValidator
{
private static readonly HttpClient client = new HttpClient();
public static async Task<bool> Validate(string secret, string key)
{
var url = "https://lusobras.meusuperbot.top/api/validate";
var payload = new { project_secret = secret, license_key = key };
var json = JsonSerializer.Serialize(payload);
var content = new StringContent(json, Encoding.UTF8, "application/json");
var response = await client.PostAsync(url, content);
if (response.IsSuccessStatusCode)
{
Console.WriteLine("License Verified!");
return true;
}
else
{
Console.WriteLine("License Invalid.");
return false;
}
}
}
Use curl in PHP.
$url = "https://lusobras.meusuperbot.top/api/validate";
$data = ['project_secret' => 'YOUR_SECRET', 'license_key' => 'LIC-KEY'];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data));
curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$result = json_decode(curl_exec($ch), true);
curl_close($ch);
if ($result['valid']) {
echo "License Valid!";
} else {
echo "Error: " . $result['message'];
}