🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #82841

Re: Cleanfeed question - HTTP type URLs

#82841
From: Steve Crook
Date: Thu, 04 Mar 2010 11:00
35 lines
2455 bytes
On Wed, 3 Mar 2010 16:36:24 -0800, D. Stussy wrote in
Message-Id: <hmmvaq$kfh$1@snarked.org>:

> Shouldn't we have "wwws?" in there?  Some SSL'ed sites use a "wwws."
> prefix/hostname.
I've seen others that use a "www2." prefix. Then there are all the ones
like blog.foo.com and wiki.foo.com.  I think the key factor is what the
client interprets as being a url.

I posted <slrnhov2ok.jsj.steve@fleegle.mixmin.net> to
alt.testing.testing to see what various clients consider to be a url.

* slrn appears to only highlight urls with an http:// prefix
* Thunderbird makes http:// and www. prefixs clickable but nothing else
* XNews is identical to Thunderbird

Based on this, I'm inclined to think the current regex is correct.

> Also, for logical flow, shouldn't we reverse the two parts?
>
> $HTTP = '(?:https?:\/\/|wwws?\.)';    makes more sense...
No problem, I'll switch it around.

> Even rarer, some sites use "web" instead of "www".  Has that been seen in
> Usenet spam?
Not by me.  It's also not treated as a valid URL by the clients I've
tested, (without an http:// prefix).

> For the "stealth URLs", use of IP address should also consider
> bracketed-IP-addresses, and I don't think we're checking for that.  Again,
> has this been observed?
>
> http://127.0.0.1/ technically isn't valid.  http://[127.0.0.1]/ is.
Yes, this also needs expanding to deal with IPv6 syntax.  I haven't seen
any instances of it yet but no doubt the time will come.
Technical Details
Message-ID: <slrnhov4ll.6dj.steve@news.mixmin.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!.POSTED.ip6-localhost!not-for-mail
References: <hmmvaq$kfh$1@snarked.org>

Show Full Headers
Complete Article Headers
Message-ID: <slrnhov4ll.6dj.steve@news.mixmin.net>
Subject: Re: Cleanfeed question - HTTP type URLs
Date: Thu, 04 Mar 2010 11:00:05 +0000
From: Steve Crook <steve@mixmin.net>
References: <hmmvaq$kfh$1@snarked.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!border2.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!newsfeed01.sul.t-online.de!t-online.de!news.mixmin.net!.POSTED.ip6-localhost!not-for-mail
Newsgroups: news.software.nntp
Organization: Mixmin
Injection-Date: Thu, 4 Mar 2010 11:00:05 +0000 (UTC)
Injection-Info: news.mixmin.net; posting-host="ip6-localhost:::1";
 logging-data="3451"; mail-complaints-to="abuse@mixmin.net"
User-Agent: slrn/pre1.0.0-18 (Linux)
Lines: 35