FORUMS

 View Poll Results: LINUX as DAILY DRIVER

WHY NOT
 
4 Vote(s)
30.77%
NOT FOR ME
 
9 Vote(s)
69.23%

Blocking Unwanted Connections with a Hosts File/block ads, banners, 3rd party Cookies

635 posts
Thanks Meter: 91
 
By vasiaeva, Senior Member on 9th October 2013, 12:39 AM
Post Reply Email Thread
MVPS HOSTS now includes entries for most major parasites, hijackers and unwanted Adware/Spyware programs!

What it does ...

You can use a HOSTS file to block ads, banners, 3rd party Cookies, 3rd party page counters, web bugs, and even most hijackers. This is accomplished by blocking the connection(s) that supplies these little gems. The Hosts file is loaded into memory (cache) at startup, so there is no need to turn on, adjust or change any settings with the exception of the DNS Client service (see below). Windows automatically looks for the existence of a HOSTS file and if found, checks the HOSTS file first for entries to the web page you just requested. The 127.0.0.1 is considered the location of your computer, so when an entry listed in the MVPS HOSTS file is requested on a page you are viewing, your computer thinks 127.0.0.1 is the location of the file. When this file is not located it skips onto the next file and thus the ad server is blocked from loading the banner, Cookie, or some unscrupulous ActiveX, or javascript file.

Example - the following entry 127.0.0.1 ad.doubleclick.net blocks all files supplied by that DoubleClick Server to the web page you are viewing. This also prevents the server from tracking your movements. Why? ... because in certain cases "Ad Servers" like Doubleclick (and many others) will try silently to open a separate connection on the webpage you are viewing, record your movements then yes ... follow you to additional sites you may visit.

Using a well designed HOSTS file can speed the loading of web pages by not having to wait for these ads, annoying banners, hit counters, etc. to load. This also helps to protect your Privacy and Security by blocking sites that may track your viewing habits, also known as "click-thru tracking" or Data Miners. Simply using a HOSTS file is not a cure-all against all the dangers on the Internet, but it does provide another very effective "Layer of Protection".

In case you're wondering ... this all happens in microseconds, which is much faster than trying to fetch a file from half way around the world. Another great feature of the HOSTS file is that it is a two-way file, meaning if some parasite does get into your system (usually bundled with other products) the culprit can not get out (call home) as long as the necessary entries exist. This is why it's important to keep your HOSTS file up to Date. How to get notified of MVPS HOSTS updates.

How to get notified of MVPS HOSTS updates.

This download includes a simple batch file (mvps.bat) that will rename the existing HOSTS file to HOSTS.MVP then copy the included updated HOSTS file to the proper location. For more information please see the Windows version that applies to you ...

Windows 8 requires special instructions - over there see here
Windows 7 requires special instructions - over there see here
Win Vista requires special instructions - over there see here

Manual Install Method - Unzip in a "temp" folder and place in the appropriate installed location:

If you are having trouble downloading or extracting the HOSTS file [click here]
Note: the below locations are for the typical default paths, edit as needed.

Windows 8/7/Vista/XP = C:\WINDOWS\SYSTEM32\DRIVERS\ETC

Windows DNS Client Service

In most cases the DNS Client Service is not needed, it is recommended to turn it off. These instructions are intended for a single (home-user) PC. If your machine is part of a "Domain", check with your IT Dept. before applying this work-around. This especially applies to Laptop users who travel or bring their work machines home. Make sure to reset the Service (if needed) prior to connecting (reboot required) to your work Domain ...

To resolve this issue (manually) open the "Services Editor"

Start | Run (type) "services.msc" (no quotes)
Win8 users - Control Panel > Administrative Tools > Services
Scroll down to "DNS Client", Right-click and select: Properties - click Stop
Click the drop-down arrow for "Startup type"
Select: Manual (recommended) or Disabled click Apply/Ok and restart.

My recommendation easy way to do it:

Hostsman includes an option to turn off the DNS Service [screenshot]

Workaround for using the MVPS HOSTS file and leaving the DNS Client service enabled (set to: Automatic)

If you find after a period of time that your browser seems sluggish with the DNS Client service enabled you can manually flush the DNS cache
Close all browser windows ... open a "Command Prompt" from the Start Menu > All Programs > Accessories > Command Prompt
Win8 users - Charms Bar > Search > (type) command prompt > Select: Command Promt (left pane) Ok the UAC prompt
(type) ipconfig /flushdns (press Enter) Then close the Command Prompt ...

A better Win8/7/Vista/XP workaround would be to add two Registry entries to control the amount of time the DNS cache is saved. (KB318803)

Flush the existing DNS cache (see above)
Start > Run (type) regedit
Win8 users - from the Charms Bar, select: Search (type) run and select Run (left pane) and (type) "regedit" (no quotes)
Navigate to the following location:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Dnscache\Parameters
Click Edit > New > DWORD Value (type) MaxCacheTtl
Click Edit > New > DWORD Value (type) MaxNegativeCacheTtl
Next right-click on the MaxCacheTtl entry (right pane) and select: Modify and change the value to 1
The MaxNegativeCacheTtl entry should already have a value of 0 (leave it that way - see screenshot)
Close Regedit and reboot ...
As usual you should always backup your Registry before editing ... see Regedit Help under "Exporting Registry files"

P.S IT'S NOT MY WORK I JUST SHARE WHAT I FOUND SO PLZ SUPPORT DEVELOPER (MAIN WEB PAGE) IF YOU FOUND IT USEFULL

P.S 2 YOU AND ONLY YOU RESPONSIBLE FOR WHAT YOU DOING WITH YOUR PS

P.S 3 FEEDBACK AND TUBS UP IS REQUIRED
The Following 14 Users Say Thank You to vasiaeva For This Useful Post: [ View ] Gift vasiaeva Ad-Free
9th October 2013, 11:48 AM |#2  
Senior Member
Thanks Meter: 326
 
More
or use adblock for firefox and chrome and tracking lists in internet explorer (which also works on RT) rather than download dodgy 3rd party files with no source code which could just as easily be malware.
The Following 4 Users Say Thank You to SixSixSevenSeven For This Useful Post: [ View ] Gift SixSixSevenSeven Ad-Free
9th October 2013, 04:36 PM |#3  
Retired Recognized Developer
Flag Moscow
Thanks Meter: 70
 
More
Quote:
Originally Posted by SixSixSevenSeven

or use adblock for firefox and chrome and tracking lists in internet explorer (which also works on RT) rather than download dodgy 3rd party files with no source code which could just as easily be malware.

Or you can just download it, check it and stop posting useless warnings. Although, not sure if you're able to decompile it.
9th October 2013, 05:13 PM |#4  
Senior Member
Thanks Meter: 326
 
More
Quote:
Originally Posted by Useless guy

Or you can just download it, check it and stop posting useless warnings. Although, not sure if you're able to decompile it.

Useless warnings? Come back to me when your computer is ridden in malware from carelessly downloaded files in a few months time.
11th October 2013, 01:59 AM |#5  
Beatsleigher's Avatar
Senior Member
Flag County of Osnabr├╝ck, Lower Saxony, Germany
Thanks Meter: 595
 
Donate to Me
More
Guys, calm down. @SixSixSevenSeven is right, though. I'd rather not download any weird files and copy them to my system32 directory, especially if there isn't any source available.

And anyways, isn't discussing this stuff against the rules?

You know, because we're all kinda developers and stuff, and that's how we make our money?
11th October 2013, 10:09 AM |#6  
D.O.C's Avatar
Inactive Recognized Developer / Retired Senior Moderator
Thanks Meter: 3,779
 
Donate to Me
More
That host file is the exact same method used by android. There no compiling/decrypting/program or malware included. Is a text file ­čśŁ

Thanks OP, it works as intended. Blocks all ads successfully.
The Following 2 Users Say Thank You to D.O.C For This Useful Post: [ View ] Gift D.O.C Ad-Free
11th October 2013, 01:34 PM |#7  
Beatsleigher's Avatar
Senior Member
Flag County of Osnabr├╝ck, Lower Saxony, Germany
Thanks Meter: 595
 
Donate to Me
More
Quote:
Originally Posted by D.O.C

That host file is the exact same method used by android. There no compiling/decrypting/program or malware included. Is a text file ­čśŁ

Thanks OP, it works as intended. Blocks all ads successfully.

Yes, it may be the same method, but the hosts files are open source and you have open source apps which do the installation for you.

And I still think this thread is against the rules. ..

Sent from my GT-I9505 using XDA Premium HD app
11th October 2013, 03:12 PM |#8  
SilverHedgehog's Avatar
Senior Member
Flag Cupertino
Thanks Meter: 165
 
More
http://someonewhocares.org/hosts/

Here's the host file I use. Works pretty good - no need for Android apps or anything.
11th October 2013, 08:42 PM |#9  
vasiaeva's Avatar
OP Senior Member
Thanks Meter: 91
 
More
Quote:
Originally Posted by Beatsleigher

Yes, it may be the same method, but the hosts files are open source and you have open source apps which do the installation for you.

And I still think this thread is against the rules. ..

Sent from my GT-I9505 using XDA Premium HD app

Against what rules
11th October 2013, 08:48 PM |#10  
Beatsleigher's Avatar
Senior Member
Flag County of Osnabr├╝ck, Lower Saxony, Germany
Thanks Meter: 595
 
Donate to Me
More
Quote:
Originally Posted by vasiaeva

Against what rules

Against the XDA rules, which you read and accepted as you created your account

Sent from my GT-I9505 using XDA Premium HD app
11th October 2013, 09:03 PM |#11  
vasiaeva's Avatar
OP Senior Member
Thanks Meter: 91
 
More
Quote:
Originally Posted by Beatsleigher

Against the XDA rules, which you read and accepted as you created your account

Sent from my GT-I9505 using XDA Premium HD app

Don't worry about XDA there is admins army who watch for that...

But i like you sense of humor
Post Reply Subscribe to Thread

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes