aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornathan <nathansmith@disroot.org>2025-08-14 22:39:17 -0600
committernathan <nathansmith@disroot.org>2025-08-14 22:39:17 -0600
commit7080d95e88dcf0441b4ff7820173c6dcd4b551c0 (patch)
tree6ea7811be685d9403eaa588a84f2c6ac5b8754dd
parent1d553e75483b20af11d23470eb381a570b8eee83 (diff)
downloadshittyweb-7080d95e88dcf0441b4ff7820173c6dcd4b551c0.tar.gz
shittyweb-7080d95e88dcf0441b4ff7820173c6dcd4b551c0.tar.bz2
shittyweb-7080d95e88dcf0441b4ff7820173c6dcd4b551c0.zip
Block fuckers from viewing data directory with 4get config example
-rw-r--r--org/4get-guide.org5
1 files changed, 4 insertions, 1 deletions
diff --git a/org/4get-guide.org b/org/4get-guide.org
index 171bccd..c2144f2 100644
--- a/org/4get-guide.org
+++ b/org/4get-guide.org
@@ -37,7 +37,7 @@ If your reading this you likely already used lighttpd since there is no other
reason you would pick lighttpd out of all the other web servers rofl. Well
anyways here is a basic config for 4get to get you started.
#+begin_src
- server.modules += ("mod_rewrite", "mod_fastcgi")
+ server.modules += ("mod_rewrite", "mod_fastcgi", "mod_access")
server.name = "<whatever the fuck you want>"
server.document-root = "/usr/local/www/<whatever the fuck you want>"
server.pid-file = "/var/run/lighttpd.pid"
@@ -49,6 +49,9 @@ anyways here is a basic config for 4get to get you started.
"broken-scriptfilename" => "enable"
))
)
+ $HTTP["url"] =~ "^/data" {
+ url.access-deny = ("")
+ }
url.rewrite-once = ( "^(.*)/$" => "$1/" )
url.rewrite-if-not-file = ( "^([^?]*)(\?.*)?$" => "$1.php$2" )
#+end_src