Update index.php

This commit is contained in:
Namhyeon Go 2024-02-17 18:54:31 +09:00 committed by GitHub
parent 1ee80fcea7
commit caaa4a2f98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,8 +3,9 @@
// Namhyeon Go <abuse@catswords.net>
// Created at: 2022-10-06
// Updated at: 2022-11-25
// Client updated at: 2024-02-17
define("PHP_HTTPPROXY_VERSION", "0.1.3");
define("PHP_HTTPPROXY_VERSION", "0.1.4");
if (strpos($_SERVER['HTTP_USER_AGENT'], "php-httpproxy/") !== 0) {
exit('<!DOCTYPE html><html><head><title>It works!</title><meta charset="utf-8"></head><body><h1>It works!</h1><p><a href="https://github.com/gnh1201/php-httpproxy">Download the client</a></p><hr><p>php-httpproxy/' . PHP_HTTPPROXY_VERSION . ' (Server; PHP ' . phpversion() . '; abuse@catswords.net)</p></body></html>');
@ -66,4 +67,4 @@ switch ($relay_headers['@method'][0]) {
fclose($fp);
}
}
}