From 295d1751b1c1bb1e8abd5fda3c003b5a77a2f082 Mon Sep 17 00:00:00 2001 From: Zankaria Date: Sat, 13 Apr 2024 00:07:03 +0200 Subject: [PATCH] banners.php: make banners redirect instead of serving the image directly --- banners.php | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/banners.php b/banners.php index ef75c2cb..f08d3b03 100644 --- a/banners.php +++ b/banners.php @@ -1,16 +1,8 @@ \ No newline at end of file +$filename = $files[array_rand($files)]; +header("Location: /banners/$filename", true, 307); +header('Cache-Control: no-cache');