From 898b52edcb47bcb3e9d6106e74ca73e74ea01e70 Mon Sep 17 00:00:00 2001 From: sillylaird Date: Thu, 3 Sep 2026 00:33:59 +0000 Subject: import live www.sillylaird.ca webroot --- api/guestbook-proxy.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 api/guestbook-proxy.php (limited to 'api/guestbook-proxy.php') diff --git a/api/guestbook-proxy.php b/api/guestbook-proxy.php new file mode 100644 index 0000000..63f1446 --- /dev/null +++ b/api/guestbook-proxy.php @@ -0,0 +1,29 @@ + [ + 'timeout' => 8, + 'user_agent' => 'SillyLaird-Proxy/1.0', + 'ignore_errors' => true, + ], + 'ssl' => [ + 'verify_peer' => true, + 'verify_peer_name' => true, + ], +]); + +$html = @file_get_contents($url, false, $ctx); + +if ($html === false) { + http_response_code(502); + exit; +} + +echo $html; -- cgit v1.2.3