Author Topic: Kill Java Applets  (Read 3677 times)

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Kill Java Applets
« on: September 05, 2001, 06:22:14 PM »
This set of filters will kill Java Applets and convert them to links. Remember the order of the filters if you wish to keep the links.

[Patterns]
Name = "1. Kill Java Link-Applets, Convert Links"
Active = TRUE
Multi = TRUE
Bounds = "<applets*</applet>"
Limit = 5000
Match = "*code=("|)(*)1.classw*"
        "param name=("|)url*(("|)httpw)3 *"
Replace = "
<!--PROX: Killed a Java Applet -->
"
          "<font size=1>[ JavaApp "1" KILLED ]<br>"
          "<a href=3>3</a></font><br>"

Name="2. Kill All Java Applets"
URL="^$LST(AllowJava)"
match="<(/|)1applet"
replace="<1NoApplet"


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
Kill Java Applets
« Reply #1 on: April 20, 2002, 09:13:29 AM »
I am now using this filter and not the two above. This one takes care of both applets and objects:

Name = "Applet/Object killer"
Active = TRUE
URL = "(^$LST(AllowJava))"
Bounds = "$NEST(<(applet|object),</(applet|object)>)"
Limit = 8192
Match = "*"
Replace = "
<!--PROX: Killed Applet or Object -->
"
          "<font size=1>[ App/X "1" KILLED ]"
          "</font><br>"

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

Bes

  • Newbie
  • *
  • Posts: 29
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Kill Java Applets
« Reply #2 on: July 06, 2002, 05:41:36 AM »
Hi Arne,

I've been trying you script, and it works great, except
on www.wimbledon.com

If you click the button "Launch the Real-Time Scoreboard" near the top-right of the page, java does get initialised, allthough my AllowJava-list is empty, so ALL java applets/objects should be stopped ?

What can be the problem ? I've been looking in the source, and found this :

document.writeln('<applet code="TestGryphon.class" codebase="/ibmrealtime/" width="1" height="1" archive="TestGryphon.jar">');
if(valuein!="")
document.writeln('<param name="query" value="'+valuein+'">');
document.writeln('</applet>');


Could the document.writeln stuff be the reason why the filter doesn't work ?

Thanks in advance

 
 

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Kill Java Applets
« Reply #3 on: July 06, 2002, 06:55:28 AM »
It gets caught by my "Kill Applet in script" since there is no reason for anyone to put an applet inside a script like this, and I filter them out. This technique is mostly used by people who wish to "hide" the initialisation of an applet and is filtered out by default in my filterset. The filter looks like this:

[Patterns]
Name = "Kill Applet in script"
Active = TRUE
Bounds = "$NEST(<SCRIPT,</SCRIPT>)"
Limit = 768
Match = "1Applet2"
Replace = "<!-- Killed Applet in javascript -->"

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