The Un-Official Proxomitron Forum
Configure Anti-Auto Refresh - Printable Version

+- The Un-Official Proxomitron Forum (https://www.prxbx.com/forums)
+-- Forum: Forum Related (/forumdisplay.php?fid=37)
+--- Forum: General Discussion (/forumdisplay.php?fid=16)
+--- Thread: Configure Anti-Auto Refresh (/showthread.php?tid=1412)



Configure Anti-Auto Refresh - valgrom - Jun. 17, 2009 01:51 AM

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,


RE: Configure Anti-Auto Refresh - bugger - Jun. 17, 2009 07:00 AM

Give us a example page where its auto refreshing Smile!


RE: Configure Anti-Auto Refresh - valgrom - Jun. 17, 2009 03:21 PM

http://www.salon.com


RE: Configure Anti-Auto Refresh - ProxRocks - Jun. 17, 2009 03:54 PM

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...


RE: Configure Anti-Auto Refresh - lnminente - Jun. 17, 2009 08:12 PM

But we know the function to re/load an URL is ¿always? a "document.location.href"


RE: Configure Anti-Auto Refresh - Kye-U - Jun. 17, 2009 08:35 PM

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.