aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Http/Controllers/PrivacyController.php16
-rw-r--r--resources/views/privacy.blade.php26
-rw-r--r--routes/web.php2
3 files changed, 44 insertions, 0 deletions
diff --git a/app/Http/Controllers/PrivacyController.php b/app/Http/Controllers/PrivacyController.php
new file mode 100644
index 0000000..277bf35
--- /dev/null
+++ b/app/Http/Controllers/PrivacyController.php
@@ -0,0 +1,16 @@
+<?php
+
+namespace App\Http\Controllers;
+
+use Illuminate\Http\Request;
+use Illuminate\View\View;
+
+class PrivacyController extends Controller{
+ /**
+ * Shows the page
+ * @return View
+ */
+ public function show(): View {
+ return view('privacy');
+ }
+}
diff --git a/resources/views/privacy.blade.php b/resources/views/privacy.blade.php
new file mode 100644
index 0000000..0d0ebfa
--- /dev/null
+++ b/resources/views/privacy.blade.php
@@ -0,0 +1,26 @@
+<x-layout>
+ <x-slot:title>Privacy</x-slot:title>
+ <div class="section">
+ <h2>What am I doing with your data?</h2>
+ <hr>
+ <h3>1. What's collected?</h3>
+ <p>This site uses the Apache2 webserver and thus, for every request received, the following is logged:</p>
+ <ul>
+ <li>IP address</li>
+ <li>Request time</li>
+ <li>Request type</li>
+ <li>Location of requested resource</li>
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Referer">Referrer</a> (what website linked you to this one)</li>
+ <li><a href="https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent">User Agent</a> (Type and version of your web browser, often also operating system and version)</li>
+ </ul>
+ <p>My website doesn't collect any more than stated above (except MediaWiki maybe)</p><br>
+ <h3>2. Why are logs kept?</h3>
+ <p>So I can examine and prevent attacks such as spam or DDoS-ing attempts</p><br>
+ <h3>3. When are the logs analyzed?</h3>
+ <p>Usually, unless I suspect an attack of some kind, I won't actively spend hours perusing the logs.</p><br>
+ <h3>4. Can I opt-out?</h3>
+ <p>Maybe? If you want to, you can email <a href="mailto:wehmaster@weh.moe">wehmaster@weh.moe</a> and I'll try and sort it out as fast as possible (assuming I can figure out how)</p><br>
+ <address>Any outlinks and hotlinked/embedded resources are subject to their own privacy policies and have nothing to do with me.</address>
+ <address>Last updated: September 9th, 2024</address>
+ </div>
+</x-layout>
diff --git a/routes/web.php b/routes/web.php
index 0b10251..af97484 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -6,6 +6,7 @@ use App\Http\Controllers\ComputersController;
use App\Http\Controllers\GuestbookController;
use App\Http\Controllers\HomeController;
use App\Http\Controllers\MusicController;
+use App\Http\Controllers\PrivacyController;
use Illuminate\Support\Facades\Route;
/*
@@ -26,5 +27,6 @@ Route::get('/guestbook', [GuestbookController::class, 'show']);
Route::get('/calculators', [CalculatorsController::class, 'show']);
Route::get('/computers', [ComputersController::class, 'show']);
Route::get('/music', [MusicController::class, 'show']);
+Route::get('/privacy', [PrivacyController::class, 'show']);
Route::post('/guestbook', [GuestbookController::class, 'addEntry'])
->middleware('rate_limit');