Post Reply 
Configure Anti-Auto Refresh
Jun. 17, 2009, 08:35 PM (This post was last modified: Jun. 17, 2009 08:37 PM by Kye-U.)
Post: #6
RE: Configure Anti-Auto Refresh
There's location.href, location.replace and location.reload. To match all three, something I came up with is:

Code:
[Patterns]
Name = "Remove Page Refresh/Reload"
Active = TRUE
URL = "($TYPE(htm)|$TYPE(js))"
Limit = 30
Match = "location.((replace|href)=$SET(1==)|reload\((true|)\)$SET(1=))"
Replace = "foo\1"

This will only work with unobfuscated JavaScript. Sidki has two filters in his config set that take care of camouflaged J "J <script> Block: Encoded Scripts" and "<script> Block: Camouflaged Scripts", in case you want to block them.
Visit this user's website
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Configure Anti-Auto Refresh - valgrom - Jun. 17, 2009, 01:51 AM
RE: Configure Anti-Auto Refresh - bugger - Jun. 17, 2009, 07:00 AM
RE: Configure Anti-Auto Refresh - valgrom - Jun. 17, 2009, 03:21 PM
RE: Configure Anti-Auto Refresh - ProxRocks - Jun. 17, 2009, 03:54 PM
RE: Configure Anti-Auto Refresh - lnminente - Jun. 17, 2009, 08:12 PM
RE: Configure Anti-Auto Refresh - Kye-U - Jun. 17, 2009 08:35 PM

Forum Jump: