You can also do something like http://www.untiny.me/ when sending a message. Basically, send an HTTP request and write down the response "HTTP 301". You can then check the URL you are redirected to and deny / allow based on your policy.
For example:
C:\>wget -O NUL http://tiny.pl/htk --2011-01-24 21:47:33-- http://tiny.pl/htk Resolving tiny.pl... 79.96.141.187 Connecting to tiny.pl|79.96.141.187|:80... connected. HTTP request sent, awaiting response... 301 <==== Location: http://www.google.com [following] <==== --2011-01-24 21:47:34-- http://www.google.com/
Matching lines marked with <====
Nasir
source share