# What the..? How did doubleclick.net manage to alter my Hosts file?

**URL:** <https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443>\
**Category:** Factual Questions\
**Created:** [November 4, 2003, 11:31pm UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443 "2003-11-04T23:31:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Larry\_Mudd](https://avatars.discourse-cdn.com/v4/letter/l/f14d63/32.png) [@Larry\_Mudd](https://boards.straightdope.com/u/Larry_Mudd)\
**Post date:** [November 4, 2003, 11:31pm UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/1 "2003-11-04T23:31:53Z")

</div>

I use a big honkin’ Hosts file to point requests for known ad-servers to a fake IP address.

Sometime during the last few weeks, I started noticing ads from [doubleclick.net](http://doubleclick.net) servers were getting through.

At first, I thought that it was just them adding newly-named servers, so I just kept opening my hosts file and adding the offending server to the bottom of the list, eg: “0.0.0.0 [m23.doubleclick.net](http://m23.doubleclick.net)”

I did that a couple of times, until I noticed that one of them that I _knew_ I’d blocked previously, with a subdomain of “ad3.”

I looked a little closer and noticed that every single reference to a doubleclick server had been remarked out. (More than thirty of them, eesh!)

It seems most likely to me that this sort of thing would happen after installing dodgy freeware, but I don’t recall downloading anything apart from the latest version of DivX recently.

I know that DivX has been in bed with Gator, so I wouldn’t put this sort of thing past them, but whatever did this left the Gator servers blocked, and I don’t see any mention of DivX installs altering your hosts file in a cursory web and usenet search.

Anyone else had this experience? Any ideas on who I ought to hunt down and beat into submission for this outrage?

What is the point of this invasive action? Do they really think that someone who has taken the time to specifically block their crap ad servers _by name_ is going to respond positively having that change undone, and motor over to [classmates.com](http://classmates.com)? Argh.

I fixed the file and tagged it read-only, but I suspect that folks that would feel comfortable editing your system files may not shrink from changing their attributes, either.

---

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [November 5, 2003, 1:03am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/2 "2003-11-05T01:03:03Z")

</div>

If a program can change the attributes on a file, why bother with write-protection at all? It seems like nothing more than an advisory, and if an arbitrary program can ignore advisories, what purpose does it serve?

Coming from a Unix-based environment, it seems the height of bizarre.

---

<div class="post-metadata">

**Author:** ![SkyBum](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@SkyBum](https://boards.straightdope.com/u/SkyBum)\
**Post date:** [November 5, 2003, 1:33am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/3 "2003-11-05T01:33:06Z")

</div>

> [@](#):
>
> \*Originally posted by Larry Mudd \*  
> \*\*I don’t recall downloading anything apart from the latest version of DivX recently.
> 
> I know that DivX has been in bed with Gator, so I wouldn’t put this sort of thing past them,. \*\*

Not sure if you will find this useful, but [here](http://forum.doom9.org/showthread.php?threadid=19583) is an interesting discussion about how to disable the adware in DivX 5 and DivX Pro 5.

---

<div class="post-metadata">

**Author:** ![LordVor](https://avatars.discourse-cdn.com/v4/letter/l/90ced4/32.png) [@LordVor](https://boards.straightdope.com/u/LordVor)\
**Post date:** [November 5, 2003, 2:57am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/4 "2003-11-05T02:57:13Z")

</div>

> [@](#):
>
> \*Originally posted by Derleth \*  
> \*\*Coming from a Unix-based environment, it seems the height of bizarre. \*\*

Um, Derleth? This is exactly how Unix works. Any program that you start runs with your permission set, so if it calls chmod() on a file that you own, it’ll successfully change the properties on that file.

-lv

---

<div class="post-metadata">

**Author:** ![sigSEGV](https://avatars.discourse-cdn.com/v4/letter/s/b5a626/32.png) [@sigSEGV](https://boards.straightdope.com/u/sigSEGV)\
**Post date:** [November 5, 2003, 3:13am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/5 "2003-11-05T03:13:09Z")

</div>

Yes, but in the Unix world, no ordinary user or process running as a user would be able to modify operating system files. Yes, you can set up an account that way in Windows, but it is not immediately obvious to an ordinary user.

> [@](#):
>
> \*Originally posted by LordVor \*  
> \*\*Um, Derleth? This is exactly how Unix works. Any program that you start runs with your permission set, so if it calls chmod() on a file that you own, it’ll successfully change the properties on that file.
> 
> -lv \*\*

---

<div class="post-metadata">

**Author:** ![CurtC](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@CurtC](https://boards.straightdope.com/u/CurtC)\
**Post date:** [November 5, 2003, 3:33am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/6 "2003-11-05T03:33:37Z")

</div>

Y’know, with Mozilla (I use the Firebird version), you can just right-click on an image and choose “Block images from [m23.doubleclick.net](http://m23.doubleclick.net).” That’s a lot easier than editing your hosts file.

---

<div class="post-metadata">

**Author:** ![Derleth](https://avatars.discourse-cdn.com/v4/letter/d/b9e5f3/32.png) [@Derleth](https://boards.straightdope.com/u/Derleth)\
**Post date:** [November 5, 2003, 8:52am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/7 "2003-11-05T08:52:42Z")

</div>

**LordVor** : That’s why I’d create that file as root, and make it read-only to all nonroot processes and/or users. A lock like that is a _long_ way from the advisory a Windows read-only permission seems to be.

**sigSEGV** : That’s correct, that’s absolutely right, but that’s also the first time I’ve ever seen someone top-post on the SDMB. We like to bottom-post here, just like in email and on usenet.

To top-post is to put your reply above the text you’re replying to. It makes everyone else scroll down to figure out what the hell you’re talking about. It’s annoying. Please don’t do it.

---

<div class="post-metadata">

**Author:** ![Armilla](https://avatars.discourse-cdn.com/v4/letter/a/e19b73/32.png) [@Armilla](https://boards.straightdope.com/u/Armilla)\
**Post date:** [November 5, 2003, 11:12am UTC](https://boards.straightdope.com/t/what-the-how-did-doubleclick-net-manage-to-alter-my-hosts-file/211443/8 "2003-11-05T11:12:06Z")

</div>

The security of OS files depends on the version of Windows you’re running.

If it’s 95/98/Me then there’s no security to speak of anyway. Not a lot you can do here to safeguard yourself except upgrade to an NT, 2000 or XP OS.

On NT3, NT4, 2K, XP and 2K3 the file system permissions are quite Unix-like. Ordinary users _don’t_ have permission to alter the hosts file. By default only the Administrator and System accounts have write access.

Pretty much like Unix, in fact.
