Changeset 90 for trunk/uribl/uridb.cgi
- Timestamp:
- 09/16/25 15:03:29 (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/uribl/uridb.cgi
r86 r90 62 62 $cfgname =~ s|_$||; 63 63 64 my $uridb = new URIdb (configfile => "/etc/uridb/$cfgname.conf"); 64 my $uridb = new URIdb (configfile => "/etc/uridb/$cfgname.conf") 65 or die "urk: something went wrong creating UIRdb\n"; 66 $uridb->connect; 65 67 66 68 my $page; … … 96 98 foreach my $domain (@dombase) { 97 99 my %row; 100 # strip off URL protocol 101 $domain =~ s{^https?://}{}; 102 # clean up/strip off extraneous bits from extract-data's tinydns output 98 103 ($domain) = split /:/, $domain; 99 104 $domain =~ s/^\+//; 100 $domain =~ s/\.uribl.company.com//; 105 $domain =~ s/\.$uridb->{misc}{blzone}//; 106 # and a secondary zone name Just In Case(TM) 107 $domain =~ s/\.$uridb->{misc}{altblzone}//; 108 # trim any non-FQDN URI parts 109 $domain =~ s{/.+$}{}; 110 # QoL: allow just pasting an email address 111 $domain =~ s/[^@]+\@//; 112 $domain =~ s/\>.*$//; 101 113 chomp $domain; 102 114 # now, see if it's multilisted
Note:
See TracChangeset
for help on using the changeset viewer.