adblock
所属分类:杀毒
开发工具:Visual Basic
文件大小:21KB
下载次数:9
上传日期:2009-07-29 15:04:51
上 传 者:
nailgg
说明: This is a source code of a program which closes auto-opened popups. It has user friendly interface.
文件列表:
adblock\AdBlocker2.vbp (1039, 2001-08-18)
adblock\AdBlocker2.vbw (136, 2001-08-18)
adblock\ads.log (244, 2001-08-18)
adblock\cookies.log (4, 2001-08-18)
adblock\Data\cookies.svr (10, 2001-08-17)
adblock\Data\dns.svr (73, 2001-08-17)
adblock\Data\hosts.bak (16, 2001-08-18)
adblock\Data\hosts.svr (12511, 2001-08-18)
adblock\Data\popups.svr (30, 2001-08-17)
adblock\frmMain.frm (17730, 2001-08-18)
adblock\frmMain.frx (2518, 2001-08-18)
adblock\frmSettings.frm (16441, 2001-08-18)
adblock\frmSettings.frx (2236, 2001-08-18)
adblock\Images\0.gif (43, 1998-11-21)
adblock\Images\1.gif (43, 1998-11-21)
adblock\Images\2.gif (43, 1998-11-21)
adblock\Images\3.gif (43, 1998-11-21)
adblock\Images\4.gif (44, 1998-11-21)
adblock\Images\5.gif (43, 1998-11-21)
adblock\Images\Hand.CUR (326, 1999-06-05)
adblock\Images\ROCKET.ICO (1078, 2001-07-19)
adblock\modAPI.bas (6106, 2001-08-18)
adblock\Data (0, 2001-08-18)
adblock\Images (0, 2001-08-18)
adblock (0, 2009-07-29)
Before using this program please back up your hosts file. Please check the hosts.svr file(in data directory) for names of servers you might not want to block.
Please do not add too many server names in the blocked list, because an inflated hosts file may actually slow down your internet connection. (around 600 server names are already there in the blocked list, but try to bring it below 500 by customizing the list). Also, please don't add too many server names and their ip addresses in the DNS Cache because that would again get added up in the hosts file. Only add ips & site names of sites you visit frequently. The format should be -
ip address sitename eg:- 216.5.163.42 www.planetsourcecode.com
If you want to enble selective cookie deletion, then right click and tray icon and go to settings. Click on the cookies tab and add the name of the server from which no cookie is to be deleted. For eg: You don't want to delete any cookies from Planetsourcecode.com, so what you do is - add planetsourcecode to the list, and uncheck "delete all cookies" option.
Reducing the timer interval can cause unpredictable behaviour, atleast in terms of blocking popups. The popup blocked count show in the systray will almost always be wrong and valid popups will also get closed. Besides, it will also be a wastage of system resouces. Please experiment with your system settings to get optimum output. It would be safer to disable popup blocking while browsing sites where you would rather want to see popups (eg: image galleries etc.)
All files in Data & Image are required for proper working of the program and it should be present in the application directory.
Please refer to Readme.WRI for details.
Please report bugs, if you find any.Thanks for downloading - Enjoy.
NOTE:
If you don't want to use selective popup blocking, you may well replace the code in the timer proc with the following :-
If mnublockpopups.Checked = True Then
'get foreground window handle
hnd = GetForegroundWindow()
'see whether it an IE window ( IEFRAME class for IE 5.5 and CabinetWClass for IE 4-5\)
Call GetClassName(hnd, class, 15)
If Left(class, 7) = "IEFrame" Or Left(class, 13) = "CabinetWClass" Then
if the window is visible then find its first child window
If IsWindowVisible(hnd) <> False Then
hcld = FindWindowEx(hnd, GW_CHILD And GW_HWNDFIRST, vbNullString, vbNullString)
'if the 1st child window WorkerA (top of zorder) is invisible, that means this window has not
'toolbars etc and it is a popup, so close it
Call GetClassName(hcld, class, 8)
If Left(class, 7) = "WorkerA" And IsWindowVisible(hcld) = False Then
Call PostMessage(hnd, WM_CLOSE, 0, 0)
stats(2) = stats(2) + 1
End If
End If
End If
End If
(only the popup blocking code section)
This will result in efficient blocking of popups (the timer interval may be safely set to 500)
/data/cookies.svr - names of sites from which cookies are not to be deleted
/data/hosts.svr - names of blocked sites
/data/hosts.bak - backup of original hosts file
/data/popups.svr - captions of popups not to be closed
/data/dns.svr - ip ads and server names in DNS Cache
/images/*.gif - web server image files
/images/*.ico - iconsused in this project
近期下载者:
相关文件:
收藏者: