Author Topic: Un-Prefix URLs  (Read 1630 times)

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Un-Prefix URLs
« on: August 23, 2001, 08:14:44 AM »
Download the 3 first filters here:
http://arne.jaha.dk/download.php/1,26,16/id111.zip

This filter will unprefix URL's on chosen sites where you get a link looking like
http://bla.bla?some.more&r=http://real.link.com


[Patterns]
Name = "Un-Prefix URLs"
Active = TRUE
URL = "[^.]+.(lycos|snap|yahoo|metacrawler|altavista)"
Limit = 1024
Match = "href=("|)?????[^'">]++[^a-z]((http|ftp)(%3A|:)(%2F|/)[^ >&]+)1[^ "'>]+"
Replace = "href=$UESC(1)"



Best wishes
Arne
Imici username: Arne
Best wishes
Arne
Imici username= Arne

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Un-Prefix URLs
« Reply #1 on: October 07, 2001, 08:26:02 PM »
And here is another one which seem to work good:

[Patterns]
Name = "Un-Prefix URL "
Active = TRUE
Limit = 1024
Match = "[^]+w[^a-z]((http|ftp)(%3A|:)(%2F|/)[^&]+)1"
Replace = "$JUMP($UESC(1))"




Best wishes
Arne
Imici username: Arne
Best wishes
Arne
Imici username= Arne

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Un-Prefix URLs
« Reply #2 on: October 07, 2001, 08:29:48 PM »
And a third attempt to unprefix URLs:

[Patterns]
Name = "Unprefix URL All"
Active = TRUE
URL = "<a * >"
Limit = 512
Match = "(*href=("|))(*/*)(http(%3A|:)(%2F|/)+*)1"
Replace = "$UESC(1)"





Best wishes
Arne
Imici username: Arne
Best wishes
Arne
Imici username= Arne

Laffin

  • Newbie
  • *
  • Posts: 1
    • ICQ Messenger - 709576
    • AOL Instant Messenger - laffinone
    • Yahoo Instant Messenger - laffinone
    • View Profile
    • Email
Un-Prefix URLs
« Reply #3 on: February 18, 2002, 06:52:51 PM »
Ok, newbie here,
I have a site with a that uses a java applet
And when you click on a url in the applet it opens up a new window
That is fine, but the new window, opens up, to something similar as what you have:
http://www.leahcim.com/AdFrame.asp?channel=%23QBChat&URL=http://real.site.com

I know I have to do something with the header field, but still at a loss...


 
 

xartica

  • Newbie
  • *
  • Posts: 38
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Un-Prefix URLs
« Reply #4 on: February 18, 2002, 10:11:52 PM »
This header filter watches for outbound URL requests, stuffs into a variable anything found after "http" or "ftp" ...and JUMPs to this tail-end destination.
It should handle what you're tring to do.

Look in your config and see if it's already in there & just not activated.
I thought it was a default filter (part of the Prox distribution package).

In = FALSE
Out = TRUE
Key = "URL: Un-Prefixer (Out)"
Match = "[^]+w[^a-z]((http|ftp)(%3A|:)(%2F|/)[^&]+)1"
Replace = "$JUMP($UESC(1))"

I use one or more of the WEBfilters posted earlier in this thread ~~ rather than this HEADER filter I'm posting.

One of the log-time Prox users, Homeric, still uses the header filter, but only for select sites. He sez:
"performs redirects on Altavista, Yandex, Rambler and Hotmail. It is preferable to use this filter than the unprefixer web filter, because it works faster. It is active on specific URLs to prevent errors."

FWIW, his URL line for this filter looks like this:
URL = "(www.|)((ya(ndex|).ru/redir)|altavista.com/r)|search.rambler.ru/click|64.4.[^/]+/cgi-bin/linkrd"