From 6ef4be09f7a43416d27c73f7e1c9d8042602dab1 Mon Sep 17 00:00:00 2001 From: Ken Fallon Date: Tue, 21 May 2024 11:49:09 +0000 Subject: [PATCH] Update ini/www.htaccess Added current file - the blocked IP addresses have been removed --- ini/www.htaccess | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ini/www.htaccess b/ini/www.htaccess index f69db08..ea06d15 100644 --- a/ini/www.htaccess +++ b/ini/www.htaccess @@ -1,10 +1,11 @@ RewriteEngine on -RewriteCond %{HTTP_USER_AGENT} (DataForSeoBot|MJ12bot|AhrefsBot|BLEXBot|dotbot|PetalBot|SemrushBot*|SiteAuditBot|SplitSignalBot|Yandex) [NC] +RewriteCond %{HTTP_USER_AGENT} (DataForSeoBot|MJ12bot|AhrefsBot|AwarioBot|BLEXBot|dotbot|PetalBot|SemrushBot*|SiteAuditBot|SplitSignalBot|Yandex) [NC] RewriteRule (.*) - [F,L] RewriteRule "^comments_rss.php$" "/comments.rss" [R] +RewriteRule "^live$" "https://stream.lugcast.mywire.org/stream" [R=301,NE,L] RewriteRule "^maillist$" "https://lists.hackerpublicradio.com/mailman/listinfo/hpr" [R=301,NE,L] RewriteRule "^download.php" "/syndication.html" [R=301,NE,L] RewriteRule "^about.php|^help_out.php" "/about.html" [R=301,NE,L] @@ -17,6 +18,7 @@ RewriteRule "^sitemap.php|^sitemap.txt" "/sitemap.html" [R=301,NE,L] RewriteRule "^tags.php" "/tags.html" [R=301,NE,L] RewriteRule "^correspondents.php" "/correspondents/index.html" [R=301,NE,L] RewriteRule "^index_full.php|^show.php|^index.php|^twat.php" "/eps/index.html" [R=301,NE,L] +RewriteRule "hosts/ken_fallon" "https://hackerpublicradio.org/correspondents/0030.html" [R=301,NE,L] RewriteRule "^calendar.php$" "http://hub.hackerpublicradio.org/calendar.php" [R,L] @@ -42,7 +44,7 @@ RewriteCond %1%2 (^|&)([^&].*|$) RewriteRule ^(.*) /$1?%2 [R=301,L] # Redirect episodes to archive.org -RewriteRule "eps/hpr([0-9]{4})\.(ogg|mp3|spx|wav|flac|opus)" "https://archive.org/download/hpr$1/hpr$1.$2" +RewriteRule "eps/hpr([0-9]{4})\.(ogg|mp3|spx|wav|flac|opus)" "https://archive.org/download/hpr$1/hpr$1.$2" RewriteRule "local/hpr([0-9]{4})\.(ogg|mp3|spx|wav|flac|opus)" "https://archive.org/download/hpr$1/hpr$1.$2" [R=301,L] # Rewrite the host series and episode pages @@ -81,11 +83,15 @@ RewriteRule hpr_mp3_rss\.php https://linuxinlaws.eu/inlaws_rss.xml -order allow,deny -allow from all +Order Allow,Deny +Allow from all + header set X-Clacks-Overhead "GNU Terry Pratchett" +Order Allow,Deny +Deny from x.x.x.x +Allow from all \ No newline at end of file