Post Reply 
Ask for killing URL shorteners redirections
Jan. 30, 2010, 01:48 PM (This post was last modified: Jan. 30, 2010 01:51 PM by whenever.)
Post: #10
RE: Ask for killing URL shorteners redirections
The 091217 version has a bug that it will ALWAYS ADD a header for a URL even if it doesn't include a Location header at all, as long as it is short enough and its Content-Type is not image. Example: http://img.ly/pTN

Therefore, we have to use ?* to make sure there is something in the Location header, hence the updated filter:

Code:
[HTTP headers]
In = TRUE
Out = FALSE
Key = "Location: Preview Shortened URL Before Redirected {ln, whenever}100130 (In)"
URL = "[^/]+{3,7}/|tinyurl.com|mxtux.tk|tweak.tk"
Match = "(?*)\0&(^$IHDR(Content-Type: image/*))($CONFIRM(\u     is to be redirected to:\n\0\n\nGo Ahead?)$SET(1=\0)$LOG(R$DTM(c): Shortened URL Passed)|$SET(1=http://www.google.com/gwt/n?u=\0)$LOG(R$DTM(c): Shortened URL Rejected))"
Replace = "\1"
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Ask for killing URL shorteners redirections - whenever - Jan. 30, 2010 01:48 PM

Forum Jump: