Update proxytest.php

This commit is contained in:
Namhyeon Go 2022-10-07 13:48:58 +09:00 committed by GitHub
parent 370415536e
commit 062d150c84
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,10 @@
// Namhyeon Go <gnh1201@gmail.com>
// 2022-10-06
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></body></html>');
}
ini_set("default_socket_timeout", 1); // must be. because of `feof()` works
ini_set("max_execution_time", 0);