-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdrm.php
More file actions
34 lines (27 loc) · 895 Bytes
/
drm.php
File metadata and controls
34 lines (27 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
// Creator : Kurama
// Github : https://github.com/Kurama250
if (strpos($_SERVER['HTTP_USER_AGENT'], 'Valve/Steam HTTP Client 1.0 (4000)') !== false) {
$serverIP = $_SERVER['REMOTE_ADDR'];
$allowedServerIPs = array('IPV6 or IPV4', 'IPV6 or IPV4');
if (in_array($serverIP, $allowedServerIPs)) {
$captchaCode = $_GET['captcha'];
$validCaptchaCode = 'YOUR_CODE';
// https://domain_name.name/api/drm.php?captcha=YOUR_CODE
if ($captchaCode === $validCaptchaCode) {
$gluaCode = "
// Start code Glua
// ...
// End code Glua
";
echo "GLua code sent!";
} else {
echo "Captcha code not valid!";
}
} else {
echo "IP Address not allowed!";
}
} else {
echo "UserAgent not good.";
}
?>