joll69 Posted September 29, 2005 Share Posted September 29, 2005 hello everyone, for some time, i have used a self-modified hosts file to block ads (not all, but many) from showing in IE6...this has worked remarkably well for quite some time (a couple months at least), but i was forced to reinstall xp the other day (cuz i screwed up the sys AGAIN) ...and used nlite (as i have before) to make the xp disc....since reinstalling, i restored my old hosts file, set the read only attribute, and then locked it (a zone alarm option)...now, no ads are blocked by it...i think i may have set an option too many in my nlite-ing...here's a copy and paste of the Last Session.ini recorded....[Main]Env = 1.0 beta 6 - 1.1.4322.2032.Microsoft Windows NT 5.1.2600.0Target = Windows XP Professional Sp2 - build 2180 - English (United States)[Tasks]Remove ComponentsUnattended SetupIntegrate HotfixesPatchesTweaks[Components];# Applications #Accessibility OptionsBriefcaseClipBook ViewerDefragmenterInternet GamesNT BackupPinballWordpad;# Drivers #Asynchronous Transfer Mode (ATM)Cameras and CamcordersDisplay AdaptersDisplay Adapters (old)Ethernet (LAN)IBM ThinkpadInfraRedISDNMultiFunctionalScannersSCSI/RAIDSony Jog DialSound ControllersTape drivesToshiba DVD decoder cardWireless Ethernet (WLAN);# Hardware Support #ATM SupportBatteryBrother DevicesMulti-port serial adaptersMulti-Processor SupportPCMCIA;# Multimedia #Images and BackgroundsLuna ThemeMedia CenterMouse CursorsMovie MakerMusic SamplesTablet PC;# Network #Client for Netware NetworksCommunication toolsInternet Connection WizardMSN ExplorerNetmeetingNetwork Monitor Driver and ToolsSynchronization ManagerWeb FoldersWindows Messenger;# Operating System Options #Administrator VB scriptsColor SchemesDesktop Cleanup WizardFile and Settings WizardFrameworkOut of Box Experience (OOBE)Search AssistantService Pack MessagesTourZip Folders;# Services #Indexing Service;# Directories #SUPPORTVALUEADD;# Compatibility #Compat01Compat02Compat04Compat08Compat10[KeepFiles]msconfig.exe[RemoveFiles]blastcln.execlock.avi[Options]AdminName = "root"AdminNChangeProfilesDir = "%SystemDrive%\Documents and Settings"TargetPath = "WINDOWS"SrvpEnabled;#ISO maker#isovol = WinLiteisoatt = -allow-multidot -relaxed-filenames -allow-leading-dots -N -l -d -D -joliet-long -duplicates-once -no-emul-boot -b boot.bin -hide boot.bin -hide boot.catalog[Patches]DoTcpipTcpIp = 100DoUsbPollUsbPoll = 500DoUxThemeDoSFC[services]Alerter,4ALG,3AppMgmt,3Browser,2CryptSvc,2DcomLaunch,2DHCP,2TrkWks,2DNSCACHE,2ERSvc,3EventLog,2HTTP,3HTTPFilter,3HidServ,4IpInIp,3IpNat,3IpFilterDriver,3PolicyAgent,2Ip6Fw,3NwlnkFlt,3NwlnkFwd,3Messenger,4NDProxy,3NetLogon,3Netman,3NetDDE,4NetDDEdsdm,4NLA,3xmlprov,3NtLmSsp,3SysmonLog,3PlugPlay,2ProtectedStorage,2RasAuto,3RasMan,3RpcLocator,3RemoteRegistry,4RemoteAccess,4seclogon,2SamSs,2LanmanServer,2SCardSvr,3Srv,3SENS,4LMHosts,2TapiSrv,3Themes,2UPS,3VSS,3AudioSrv,2SharedAccess,3Wmi,3W32Time,2LanmanWorkstation,2[Tweaks];# Boot & Shutdown #Auto-End TasksAuto-Kill Hung AppsAuto-Kill Hung ServicesDisable saving Last Good state at bootDisabled;# Explorer #Add CMD SHELL:> to all Drives and FoldersAdvanced Search: preconfigure optionsDisable Beep on errorsDisable Prefix: Shortcut toRemove Send To on context menuShow all files and foldersShow extensions of known file-typesShow Statusbar in all windowsUse small icons in Explorer bar;# File Open/Save Dialog #Disable File MRU-List;# Internet Explorer #Disable Market Place bookmarkDisable Media Player 6.4 created bookmarksDisable Outlook Express link creationDisable Password-CachingPreset Homepage to google.comSet Internet Explorer to accept 10 connects a time;# My Computer #Add Device Manager to Context MenuAdd Services to Context MenuAdd Software to Context Menu;# Network #Disable administrative sharesDisable automatic search for network folders and printersDisable DCOM protocol bindingsDisable DNS failure cacheDisable extra SMB notify-change trafficDisable LAN-Manager from caching passwordsDisable LM HOSTS lookupDisable Microsoft-DS (close port 445 TCP/UDP)Disable restoring mapped network drives on logonDisable Simple File SharingHide PC in Workgroups/DomainsRemove remote-computer NameSpace;# Privacy #Clear most recently opened documents list on logoffDisable and Remove Documents List from Start MenuDisable Error ReportingDisable Last accessed Timestamp on filesDisable Logging & Reboot on System FailureRemove Alexa Spyware;# Security #Disable DCOMDisable Windows Script Host (WSH)Re-Enable user:pass URLsUnhide Administrator account;# Speed #Classic Control PanelDisable Optimize harddisk when idleDisable paging of kernel and core-osDisable Tracking of Broken Shortcut LinksDisable Warn on low disk spaceSpeed-up Access to AVI Media Files;# Start Menu #Disable Highlight newly installed programsDisable popup on first bootDo not use Personalized MenusExpand Connect ToExpand My ComputerExpand Network ConnectionsReduce popup delayRemove Search the Internet from SearchRemove Set Program Access and DefaultsRemove Windows Catalog from Start MenuUse small icons in Start Panel;# Taskbar #Disable Language-Bar;# Visual Effects #Disable: Animate windows when minimizing and maximizingDisable: Show translucent selection rectangleDisable: Show windows contents while draggingDisable: Slide taskbar buttonsDisable: Smooth edges of screen fontsDisable: Transitions and ShadowsDisable: Use a background image for each folder typeDisable: Use common tasks in foldersDisable: Use drop shadows for icon labels on the desktop;# Windows Media Player #Accept Privacy StatementDisable auto-add music to libraryDisable automatic codec downloadDisable license backup promptDisable MRUDisable scripting commandsDisable starting with Media GuideDisable WMP auto-updateNo visualizationOptimize fullscreen mode behaviourZoom video to windowsize[unattended]UnattendMode = FullUnattendedComputerType = AutomaticProgFilesPath = "C:\Program Files"HibernationNoAutoLogonYesMaximumDataStorePercentOfDisk = 1DefaultThemesOffIISInstall = 2[Drivers][Hotfixes]E:\CustomXP\files\RVMUpdatePack1.3.1.cabE:\CustomXP\files\RVMAddonsWMP10_1.0.cab..........everything else works like a charm, but this one thing is maddening! can anyone see what i did wrong? or how to get the system to see and use the hosts file? i apologize if this is posted in the wrong section... Link to comment Share on other sites More sharing options...
firefoxthebomb Posted September 29, 2005 Share Posted September 29, 2005 I do not think that this is what you were asking for exactly but it may help you.I use a program called Adsgone and it blocks popups and banners on web pages as well as help stop adaware and also blocks messneger popups. Might be a good solution for you. Link to comment Share on other sites More sharing options...
Xable Posted September 30, 2005 Share Posted September 30, 2005 (edited) Disable LM HOSTS lookup - that would be why it`s not working. Next time post stuff related to nlite in the nLite forum, you will get more help if your in the right section.p.s. i`ve no idea how to reverse the tweak... but if you want to get rid of most ads... use FireFox Edited September 30, 2005 by Neanderthal Link to comment Share on other sites More sharing options...
Yzöwl Posted September 30, 2005 Share Posted September 30, 2005 I don't really see how those two should be connected since the LMHOSTS file is different from the HOSTS file.The HOSTS file contains IP name-to IP address mappings, whereas the LMHOSTS file maps NetBIOS names to IP addresses. HOSTS name resolution is equivalent to what the DNS server does, LMHOSTS name resolution is equivalent to what the WINS server does.One thing I would check is that the order is such that the Hosts file is actually checked before the DNS.Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\ServiceProvider]"DnsPriority"=dword:000007d0"HostsPriority"=dword:000001f4"LocalPriority"=dword:000001f3"NetbtPriority"=dword:000007d1The above are the default settings! Link to comment Share on other sites More sharing options...
joll69 Posted September 30, 2005 Author Share Posted September 30, 2005 thanx for all the replies, and to answer those who posted, 1) zone alarm pro has a feature that blocks banner/skyscraper ads, but that tends to block legit images as well, that's why i use the hosts file...it's very specific, you see .....2)i'd rather avoid the fox if possible...it feels too much like netscape to me, for which i never was fond....3)thanx for those registry strings, but i checked my settings, and mine match the defaults exactly! i don't understand why it's not seeing the hosts file...as for future replies, i'd really appreciate it if a mod could move this topic to the nlite section..pretty please?! ....... Link to comment Share on other sites More sharing options...
nakira Posted September 30, 2005 Share Posted September 30, 2005 It might seem silly, but make sure the path to hosts is set properly. Below is %SystemRoot%\System32\drivers\etc[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]"DataBasePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,\ 00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,\ 64,00,72,00,69,00,76,00,65,00,72,00,73,00,5c,00,65,00,74,00,63,00,00,00 Link to comment Share on other sites More sharing options...
joll69 Posted September 30, 2005 Author Share Posted September 30, 2005 yeah, mine is set to that directory..... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now