Update index.php

This commit is contained in:
Namhyeon Go 2022-11-25 22:19:31 +09:00
parent 17f71cf2ad
commit 5ec7e00499

View File

@ -7,7 +7,7 @@
define("PHP_HTTPPROXY_VERSION", "0.1.3");
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>Version: ' . PHP_HTTPPROXY_VERSION . '</p></body></html>');
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>');
}
ini_set("default_socket_timeout", 1); // must be. because of `feof()` works