Kareha Board IP Banning October 03, 2018 03:11AM |
Registered: 6 years ago Posts: 5 |
## Configuration for Piratebox server.modules = ( "mod_access", "mod_alias", # "mod_compress", Disabled, fixing reload Problem?? "mod_redirect", "mod_rewrite", "mod_setenv", "mod_fastcgi" ) server.document-root = "/opt/piratebox/www" ## Locate the tmp storage into tmp. It is in most cases the ram ## Limit the uploads to 5MB to save - especially on small devices ## the device from dieing because OUT-OF-RAM exceptions ## in KB => 5MB server.upload-dirs = ( "/tmp" ) server.max-request-size = 5120 server.errorlog = "/opt/piratebox/tmp/error.log" server.breakagelog = "/opt/piratebox/tmp/break.log" server.pid-file = "/opt/piratebox/tmp/lighttpd.pid" server.username = "nobody" server.groupname = "nogroup" index-file.names = ( "index.php", "index.html", "index.htm", "default.htm", " index.lighttpd.html" ) url.access-deny = ( "~", ".inc" ) # added .cgi .py static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" , ".cgi" , ".py" ) # Enable lighttpd on ipv6 $SERVER["socket"] == "[::]:80" { } dir-listing.encoding = "utf-8" server.dir-listing = "enable" # Grabs main css dir-listing.external-css = "/content/css/page_style.css" # Header # Enables header section dir-listing.show-header = "enable" dir-listing.encode-header = "disable" # Hides HEADER.txt from listing dir-listing.hide-header-file = "enable" # Footer # Enables footer section dir-listing.show-readme = "enable" dir-listing.encode-readme = "disable" # Hides README.txt from listing dir-listing.hide-readme-file = "enable" # Diables default footer text dir-listing.set-footer = " " # Disabled, maybe fixes reload problem on imageboard #compress.cache-dir = "/var/cache/lighttpd/compress/" #compress.filetype = ( "application/x-javascript", "text/css", "text/html", "text/plain" ) #n.a. on router include_shell "/usr/share/lighttpd/create-mime.assign.pl" include "/opt/piratebox/conf/lighttpd/mime.types" #----------- ShoutBox-Env -------------- include "/opt/piratebox/conf/lighttpd/env" #----------- cgi.conf -------------- server.modules += ( "mod_cgi" ) $HTTP["url"] =~ "^/cgi-bin/" { # cgi.assign = ( "" => "" ) cgi.assign = ( ".py" => "/usr/bin/python" ) } ## Warning this represents a security risk, as it allow to execute any file ## with a .pl/.py even outside of /usr/lib/cgi-bin. # #cgi.assign = ( # ".pl" => "/usr/bin/perl", # ".py" => "/usr/bin/python", #) $HTTP["url"] =~ "^/board/" { cgi.assign = ( ".pl" => "/usr/bin/perl" , ) } #------------------------------------- setenv.add-response-header += ( "Cache-Control" => "max-age=60, must-revalidate, no-store, no-cache, public" ) # 404 Error Page with redirect # server.error-handler-404 = "/index.html" ## for better debugging #server.modules += ( "mod_accesslog" ) #accesslog.filename = "/opt/piratebox/tmp/access.log" # Fix for iOS7 # It ask especially different domains without a specific URL. # It want to get a "success" message, to allow full system/internet access $HTTP["useragent"] =~ "CaptiveNetworkSupport" { server.document-root = "/opt/piratebox/www/library/test/" index-file.names = ( "success.html" ) dir-listing.activate = "disable" server.error-handler-404 = "/success.html" } include "/opt/piratebox/conf/lighttpd/fastcgi-php-generate203.conf" ## Uncommenting the following line enables PHP for the ## complete PirateBox #include "/opt/piratebox/conf/lighttpd/fastcgi-php.conf" #Ban section: $HTTP["remoteip"] == "192.168.77.75|192.168.77.187|192.168.77.38" { url.access-deny = ( "" ) }
Re: Kareha Board IP Banning October 22, 2018 04:50AM |
Registered: 6 years ago Posts: 1 |
Re: Kareha Board IP Banning October 23, 2018 03:04AM |
Registered: 6 years ago Posts: 5 |