Author Topic: Stripping CGI redirects  (Read 1586 times)

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Stripping CGI redirects
« on: August 02, 2001, 03:01:34 PM »
http://arne.jaha.dk/download.php/1,16,6/id51.zip

I just wrote a filter to specifically  get rid of the ?cgi redirects and any cgi-bin directories in html links.

Works like a charm but as I don't want to have it active on all sites (such as
not at crosssearch.com) I wrote a blocklist textfile which I called KeepCGI.txt
and contains the names of sites NOT to work on (ie sites where the cgi commands are to be unchanged).

[Patterns]
Name = "Kill cgi redirects on any site not placed in KeepCGI bypass list"
Active = TRUE
URL = "^$LST(KeepCGI)"
Limit = 200
Match = ""*1[/]*.cgi*"|"*1[/]cgi-bin*""
Replace = ""1""

Dave
Best wishes
Arne
Imici username= Arne