Post Reply 
Allow third-party scripts for 1 site
Oct. 19, 2010, 09:39 AM
Post: #1
Allow third-party scripts for 1 site
Hello, I just cann't find the syntax for the line to add to Exceptions-U for header filters.
For example in order to

1) allow Third-party scripts (only these, not ALL scripts) for 1 site
Code:
myexamplesite1.com/        $SET(   ...             ???

and

2) with "Content-Type: 5c Filter GIFs 07.02.24 [jjoe] (o.1) (In)" ticked, allow (normal, not animated) GIFs for one site, like Megaupload whose captcha is a GIF for me, nowadays. The following syntax has NO effect:

Code:
[^.].megaupload.com/gencap.php        $SET(0=a_gifs:0.)
[^.].megaupload.com/        $SET(0=a_gifs:0.)

Thanks in advance for your help.
Add Thank You Quote this message in a reply
Oct. 19, 2010, 02:45 PM (This post was last modified: Oct. 19, 2010 02:59 PM by sidki3003.)
Post: #2
RE: Allow third-party scripts for 1 site
(Oct. 19, 2010 09:39 AM)fpout Wrote:  1) allow Third-party scripts (only these, not ALL scripts) for 1 site
Code:
myexamplesite1.com/        $SET(   ...             ???

Code:
myexamplesite1.com/        $SET(0=i_script:0.)

"i_script:0" overrides any of the - mutually exclusive - 7.1, 7.2, 7.3 header switches (where benefit of overriding 7.3 is arguable).

"<script> Block: All Third Party Scripts" was mangling the layout of the bottom "jsout" informational flyover. Corrected.


Quote:2) with "Content-Type: 5c Filter GIFs 07.02.24 [jjoe] (o.1) (In)" ticked, allow (normal, not animated) GIFs for one site, like Megaupload whose captcha is a GIF for me, nowadays. The following syntax has NO effect:

Code:
[^.].megaupload.com/gencap.php        $SET(0=a_gifs:0.)
[^.].megaupload.com/        $SET(0=a_gifs:0.)

"Content-Type: 5c Filter GIFs" doesn't block or alter GIFs in any way. It just enables inspection of GIF content, which is the precondition for detecting e.g. scripts posing as GIFs, and for limiting animated GIFs to a few loops.
Thus, the Megaupload captcha ("Enter this <GIF> here:") should display fine.

That said, your URL expression is missing a "+": [^.]+.megaupload.com/gencap.php
What i'm using is: (http://www.|)megaupload.com/
Add Thank You Quote this message in a reply
Oct. 21, 2010, 08:15 PM
Post: #3
RE: Allow third-party scripts for 1 site
Hi, Sidki. Thanks for your answer.

About Third-Party Scripts, is that right:

Value for i_scrit: :
0= Allow ALL scripts, from the visited site & from any other site
1= Block ALL scripts, wherever they come from
11= Block all 3d-party
12= Block specific Third Party Scripts

Quote:"i_script:0" overrides any of the - mutually exclusive - 7.1, 7.2, 7.3 header switches

... so what is the difference between "i_script:0" and "a_js" ? Which is the most restrictive ?

*****************

Concerning Megaupload captcha Gif, on my machine, ticking "Content-Type: 5c Filter GIFs" is blocking the gif, it doesn't appear, unless I untick this filter.
The host is something like "wwwq32.megaupload.com" where the number (here "32") is different for each file to download.
I append a copy of the LOGwindow if you want to control it.
It might be blocked here:
Code:
BlockList 2843: in Mem-SpoofVars, line 1

Sorry, I was inattentive and didn't notice I'd omitted the "+". But yet, this doesn't work, either:
Code:
[^.]+.megaupload.com/gencap.php        $SET(0=a_gifs:0.)

I found this one to work well and the gif of the captcha shows up:
Code:
[^.]+.megaupload.com/gencap.php        $SET(0=a_gifs.)


Attached File(s)
.txt  MU_log.txt (Size: 28.86 KB / Downloads: 392)
Add Thank You Quote this message in a reply
Oct. 22, 2010, 05:11 AM (This post was last modified: Oct. 22, 2010 05:16 AM by JJoe.)
Post: #4
RE: Allow third-party scripts for 1 site
(Oct. 21, 2010 08:15 PM)fpout Wrote:  About Third-Party Scripts, is that right:

Value for i_script: :
0= Allow ALL scripts, from the visited site & from any other site
1= Block ALL scripts, wherever they come from
11= Block all 3d-party
12= Block specific Third Party Scripts

No, I don't think so.
0 allows the scripts past the filters enabled by the 7.1, 7.2, and 7.3 header switches. Other filters still get a chance to match.

By header switches we mean these header filters:
! |||||||||||| 7.1 Block all Scripts 10.10.16 [sd] (o.3) (Out)
! |||||||||||| 7.2 Block all Third Party Scripts 10.10.16 [sd] (o.3) (Out)
! |||||||||||| 7.3 Block specific Third Party Scripts 10.10.16 [sd] (d.2) (Out)

(Oct. 21, 2010 08:15 PM)fpout Wrote:  
Quote:"i_script:0" overrides any of the - mutually exclusive - 7.1, 7.2, 7.3 header switches

... so what is the difference between "i_script:0" and "a_js" ? Which is the most restrictive ?

"i_script:0" allows the script but doesn't prevent it from being modified.
"a_js" allows the script and prevents it from being modified.

(Oct. 21, 2010 08:15 PM)fpout Wrote:  Concerning Megaupload captcha Gif, on my machine, ticking "Content-Type: 5c Filter GIFs" is blocking the gif, it doesn't appear, unless I untick this filter.

I don't see this in the sets that I tested.

HTH
Add Thank You Quote this message in a reply
Oct. 22, 2010, 01:51 PM
Post: #5
RE: Allow third-party scripts for 1 site
(Oct. 22, 2010 05:11 AM)JJoe Wrote:  About Third-Party Scripts

"i_script:0" allows the script but doesn't prevent it from being modified.
"a_js" allows the script and prevents it from being modified.

Thanks, that's clear - light has sprung (finally).
Add Thank You Quote this message in a reply
Oct. 22, 2010, 01:55 PM
Post: #6
RE: Allow third-party scripts for 1 site
MegaUpload = SOLVED

My further experiments:

1- It works fine (GIF shows up) with any OOB config

2- Here is the CULPRIT:

Accept-Encoding: 1 Kill if Filter-Forced 07.03.06 [mona] (d.0) (Out)

It was UN-ticked in my config (God only knows why ?) while ticked in the OOB-cfgs.

I started a deep clean-up of my config through WinMerge, purging all of the old/unused, and found that by the usual trial-and-error way.

But what's funny is that the captcha-gif appears WITH the "Content-Type: 5c Filter GIFs 07.02.24 [jjoe] (o.1) (In)" ON -no need to un-tick it anymore- while, before turning "Accept-Encoding: 1 Kill if Filter-Forced" ON, I was forced to turn the "filter GIFs" off !
I really do not see where the interaction comes from ?

Nevertheless, it's my fault again, I (years ago) turned this "Accept-Encoding: 1 Kill if Filter-Forced" filter off in an probable attempt to gain some speed.

Thanks JJoe for making me know that
Quote:I don't see this in the sets that I tested.
which induced me into that (necessary) household cleaning.
Add Thank You Quote this message in a reply
Oct. 22, 2010, 10:16 PM
Post: #7
RE: Allow third-party scripts for 1 site
I have renamed the respective filter to Accept-Encoding: 1 Kill if Filter-Forced 07.03.06 [mona] (d.r) (Out)

r -> required
Add Thank You Quote this message in a reply
Oct. 23, 2010, 11:17 AM
Post: #8
RE: Allow third-party scripts for 1 site
Thanks, Sidki - I updated the filter's name + verified that every other ".r)" filter was turned on.
Add Thank You Quote this message in a reply
Post Reply 


Forum Jump: