Understanding URLs? - Posted (2245 Views)
Advanced Member
Etymon
Posts: 2396
2396
I have seen some URLs look like this:

www3

but, as a rule, do all URLs start with:

www

 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Senior Member
bobby131313
Posts: 1163
1163
No, subdomains are very common even on monster sites. About.com is a good example.
Posted
Advanced Member
Etymon
Posts: 2396
2396
Ah! Thank you Bobby!
What got me to thinking about it is shortened urls being used in a forum. I wonder if there is a way to check the shortened url against a database (on site or other) to determine if the url goes somewhere that goes against the forum's policy. For example a tiny url leading to pornography, spam, or something malicious.
My original thought was about shortened urls, but it would be nice to be able to check any link against a filter kind of like when a site checks email addresses against a list of known spammers. That is where this is leading.
Posted
Advanced Member
Etymon
Posts: 2396
2396
I am wondering how to develop something like this does, for example:

http://untiny.me

Posted
Advanced Member
Etymon
Posts: 2396
2396
I did a Google search for "lengthen shortened URL" and found some services to lengthen URLs. Maybe the solution is to recommend users to install a plugin for their browser. Any ideas on this?
Posted
Senior Member
bobby131313
Posts: 1163
1163
I installed the url shortening mod to prevent horizontal scrolling, then put tinyurl type sites in the bad word filter. I had to do it because of buttheads trying to steal cookies from me, but it would serve the same end result for you wouldn't it? Users just couldn't post them at all.
Posted
Advanced Member
Etymon
Posts: 2396
2396
OK. Here is a JSON API:

http://www.longurlplease.com/docs and something else from them http://blog.longurlplease.com/2009/01/using-longurlplease-with-flxhr.html
Posted
Advanced Member
Etymon
Posts: 2396
2396
Yes, that is a great idea, Bobby!
A question comes to mind of how to keep up with every tiny url site that comes about. Is there a web site that tracks that kind of stuff?
Posted
Senior Member
bobby131313
Posts: 1163
1163
Eh, I don't see all that many. Takes 2 seconds to throw them in the bad word filter when I see them. Haven't seen a new one on my forum in months.
Posted
Advanced Member
Etymon
Posts: 2396
2396
I guess I could use your badword filter and replace the tiny url attempt with (off-site shortened URLs are not allowed).
Instead of a link reading like this:

http://tiny.tr/Ui8s

It would read like this:

http://(off-site shortened URLs are not allowed)/Ui8s

That would get the message across pretty quickly about the site's policies.
Posted
Senior Member
bobby131313
Posts: 1163
1163
That's exactly what I do. wink
You Must enter a message