File tree Expand file tree Collapse file tree
security/myattackers-ipsets/ipset
webserver/apache-sites-available Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# AS211590 - Bucklog
22#: ipset -exist restore <ipset/bucklog.ipset
33#: iptables -w -I myattackers-ipset -m set --match-set bucklog src -j REJECT
4- create bucklog hash:net family inet hashsize 64 maxelem 64
4+ create bucklog hash:net family inet hashsize 64 maxelem 32
55flush bucklog
66#add bucklog 170.39.217.0/24
77# FBW NETWORKS
Original file line number Diff line number Diff line change 154154 # Deny requests for JavaScript and CSS .map files
155155 RewriteRule "\.map$" - [R=404,END]
156156
157+ # Unknown file for Facebook
158+ RewriteRule "^/meta\.json$" - [R=204,END]
159+
157160 # Canonical redirect
158161 RewriteCond "%{HTTP_HOST}" "!=${SITE_DOMAIN}"
159162 RewriteRule "^" "%{REQUEST_SCHEME}://${SITE_DOMAIN}%{REQUEST_URI}" [R=permanent,END]
169172 #RewriteCond "%{REQUEST_FILENAME}" !-f
170173 #RewriteRule "^(.+)\.\d\d+\.(bmp|css|cur|gif|ico|jpe?g|js|png|svgz?|webp|webmanifest|eot|otf|ttf|woff|woff2)$" "/$1.$2"
171174
172- ## Missing images
175+ ## Serve 404 image
176+ # convert -fill "#FF0000" -background "#F4F4F4" -font "DejaVu-Sans" -pointsize 42 -gravity north \
177+ # "(" ./sun-mountains.svg -resize 512x512 ")" \
178+ # "(" -size 512x90 xc:"#F4F4F4" -gravity center -annotate +0+0 "example.com" )" \
179+ # -append missing-image.png
180+ #<LocationMatch "^/wp-content/uploads/">
181+ # ErrorDocument 404 /missing-image.png
182+ #</LocationMatch>
173183 #RewriteCond "${DOCUMENT_ROOT}%{REQUEST_FILENAME}" !-f
174- #RewriteRule "^.+\.(jpe?g|png|gif)$" "/default-image.jpg" [END]
184+ #RewriteRule "^/wp-content/uploads/" - [R=404,END]
185+ ##RewriteRule "\.(jpe?g|png|gif|webp|avif)$" - [R=404,END]
175186
176187 # Don't index files for robots
177188 <LocationMatch "^/(robots\.txt|.*sitemap.*\.xml)$">
You can’t perform that action at this time.
0 commit comments