Forum Home
PC World Chat
 
Thread ID: 76374 2007-01-30 08:37:00 hosts file and xtra rumpty (2863) PC World Chat
Post ID Timestamp Content User
520635 2007-01-30 08:37:00 I have ads.xtra.co.nz in my hosts file, to block it.

When viewing the www.xtra.co.nz page, and clicking on the link to Broadband Plans, my browser (Firefox) hangs when it tries to load ads.xtra.co.nz, and will go no further. The Hosts file has to be disabled (renamed) to allow the browser to actually go to the broadband plans page.

I though the entries in the hosts file just made the browser skip trying to load those pages, and carry on.
rumpty (2863)
520636 2007-01-30 08:41:00 Just get adblock imo roddy_boy (4115)
520637 2007-01-30 09:19:00 some pages have scripts (i think . . . ) that checks to see if the page loads .
also behaviour depends on browser .

the other way is to use a proxy which basicly sends a fake page to the browser when it requests an add . a few of the ad blocking programs do this .

btw i still prefer host file over browser add blocking as its system wide ie effects all software including nasties .
tweak'e (69)
520638 2007-01-30 10:00:00 Never heard of using the hosts file to block ads?

I use the hosts file to resolve my machine names on my home network..
SolMiester (139)
520639 2007-01-30 10:32:00 You could open your host file in notepad and remove the ads.xtra.co.nz entry
But a better idea is to look elsewhere for a decent broadband plan.
JackStraw (6573)
520640 2007-01-30 10:47:00 The hosts file was originally used to speed up name resolution when we had REALLY slow internet ;-) If you wanted to block a site you just resolved it as local host or a null ip like;
0.0.0.0 ads.xtra.co.nz instead of
202.27.184.165 ads.xtra.co.nz

that's not the real ip, I had to make it up I've blocked it :-)
JackStraw (6573)
520641 2007-01-30 20:14:00 I have ads . xtra . co . nz in my hosts file, to block it .

When viewing the www . xtra . co . nz page, and clicking on the link to Broadband Plans, my browser (Firefox) hangs when it tries to load ads . xtra . co . nz, and will go no further . The Hosts file has to be disabled (renamed) to allow the browser to actually go to the broadband plans page .

I though the entries in the hosts file just made the browser skip trying to load those pages, and carry on . I have the same issue . It's great . . . shows that the adblocking ability in hosts works . You'll notice that the link url starts with http://ads . xtra . co . nz . . . . . . etc . That's why it requires the ads to load prior to allowing you to access the page .

Anyhoo . . . the way around it is to go to another page that links to it and use that, or just right-click on the link, look at the last portion of the address, and type it into your browser manually .
Greg (193)
520642 2007-01-31 04:54:00 I have the same issue. It's great... shows that the adblocking ability in hosts works. You'll notice that the link url starts with http://ads.xtra.co.nz...... etc. That's why it requires the ads to load prior to allowing you to access the page.

Anyhoo... the way around it is to go to another page that links to it and use that, or just right-click on the link, look at the last portion of the address, and type it into your browser manually.

So they have cunningly arranged that you can't go any further without the ads page loading. Greg, what specifically in that URL requires it to load before accessing the next page?

Ok on the work-arounds. Or maybe, as JackStraw said, the best work around is to go to another ISP for a better broadband plan. Still, a fellow has to see what is offering.

Thanks all for your comments.
rumpty (2863)
520643 2007-01-31 07:07:00 I use eDexter which runs as a local server delivering a picture for any DN resolving to Local Host. mikebartnz (21)
1