Update index.php

This commit is contained in:
Namhyeon Go 2024-06-19 14:46:56 +09:00 committed by GitHub
parent 86111d5c8e
commit 8214ea83c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,15 +6,15 @@
* Namhyeon Go (Catswords Research) <abuse@catswords.net>
* https://github.com/gnh1201/caterpillar
* Created at: 2022-10-06
* Updated at: 2024-04-05
* Updated at: 2024-06-19
*/
define("PHP_HTTPPROXY_VERSION", "0.1.5");
define("PHP_HTTPPROXY_VERSION", "0.1.6");
define("DEFAULT_SOCKET_TIMEOUT", 1);
define("STATEFUL_SOCKET_TIMEOUT", 30);
define("MAX_EXECUTION_TIME", 0);
if (strpos($_SERVER['HTTP_USER_AGENT'], "php-httpproxy/") !== 0) ) {
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/caterpillar">Download the client</a></p><p>' . $_SERVER['HTTP_USER_AGENT'] . '</p><hr><p>php-httpproxy/' . PHP_HTTPPROXY_VERSION . ' (Server; PHP ' . phpversion() . '; Caterpillar; abuse@catswords.net)</p></body></html>');
}