( ′∀`)σ≡σ☆))Д′)レ(゚∀゚;)ヘ=З=З=Зε≡(ノ´_ゝ`)ノ
<?php
function getApiKeys() {
// Implement basic authentication (e.g., using a token)
$authToken = 'f4c3b9a2e6d1c5e0a8f1b2c3d4e5f6g7'; // Define a secure token
/*if (!isset($_SERVER['HTTP_AUTHORIZATION']) || $_SERVER['HTTP_AUTHORIZATION'] !== 'Bearer ' . $authToken) {
header('HTTP/1.1 401 Unauthorized');
echo json_encode(['error' => 'Unauthorized access']);
exit;
}*/
// Check if the HTTP_REFERER header is set
if (!isset($_SERVER['HTTP_REFERER'])) {
echo 'Access Denied!';
exit;
}
// Check if the HTTP_REFERER header is present and matches the domain of your website
/*if (!$_SERVER['HTTP_REFERER'] || !strpos($_SERVER['HTTP_REFERER'], $_SERVER['HTTP_HOST'])) {
// The request is not coming from the same domain, reject it
header('HTTP/1.1 403 Forbidden');
exit;
}*/
$STABILITYAI_API_KEY = '';
$OPENAI_API_KEY = '';
$CLIPDROP_API_KEY = '';
// Enter Your API Keys Here
$apiKeys = array(
'stabilityai' => 'PROXY',
'openai' => 'PROXY',
'clipdrop' => 'PROXY',
);
$apiKeys = json_encode($apiKeys);
// Return the API keys
echo $apiKeys;
}
getApiKeys();
?>