Post Reply 
Configure Anti-Auto Refresh
Jun. 17, 2009, 01:51 AM
Post: #1
Configure Anti-Auto Refresh
Anyone with experience in configuring the Anti-AutoRefresh feature of Proxomitron, I need your help.

Auto-refresh of a webpage is still getting through after using Proxomitron as the proxy. The anti-autorefresh has some settings, but I'm not sure how to work with them.

Any help would be appreciated.

By the way, the page's source has this piece of code:


var refresh_url = 'http://' + host + path + '?source=refresh';
var refresh_time = 300000;


Thanks,
Add Thank You Quote this message in a reply
Jun. 17, 2009, 07:00 AM
Post: #2
RE: Configure Anti-Auto Refresh
Give us a example page where its auto refreshing Smile!
Add Thank You Quote this message in a reply
Jun. 17, 2009, 03:21 PM
Post: #3
RE: Configure Anti-Auto Refresh
http://www.salon.com
Add Thank You Quote this message in a reply
Jun. 17, 2009, 03:54 PM
Post: #4
RE: Configure Anti-Auto Refresh
with that being script-driven, have you considered disabling scripts by default?

they can "name" those variables anything they want, they didn't have to name them with the word 'refresh' in the variable name...
Add Thank You Quote this message in a reply
Jun. 17, 2009, 08:12 PM
Post: #5
RE: Configure Anti-Auto Refresh
But we know the function to re/load an URL is ¿always? a "document.location.href"
Add Thank You Quote this message in a reply
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 


Forum Jump: