Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ToyotaGuy23

macrumors newbie
Original poster
Jun 3, 2009
29
0
Hello MacRumors!

New owner of an iPhone 3g here.
I have 2.2.1 firmware installed.
I have jailbroken my device.
I have installed Cydia, Installer, OpenSSH, and various other goodies.

What I would like to do is use a modified HOSTS file from here

I've had success using this HOSTS file in both Windows and Linux Operating Systems. I've grown to like the way it works, the ads never show, you just get a banner saying "cannot connect" or "cannot be displayed."

I'd like to incorporate this into my new iPhone.

Currently, I am using a Windows Vista laptop. I have set up OpenSSH and gotten into the correct directory called (/etc) The program I've used is called WinSCP.

I copied the iPhone's HOSTS file over to Vista's desktop, and opened the file up with Notepad. I copied the entries from the NEW HOSTS file to the old HOSTS file and replaced it into the /etc directory. Originally the HOSTS file was 236kb, and now it's 611kb, so I know it worked.

I use one of the most ad filled sites I have come across for testing in my other systems. It's also a great IRC search engine, called www.packetnews.com.

When successful, the banners on the top and sides are blocked completely, and don't show up. Pop ups are gone, and so on.

This is NOT the case with my iPhone.
Have I modified the incorrect file?
Where did I go wrong?
 

dZp

macrumors 6502a
Mar 29, 2006
987
55
I've followed the instructions from here and it works fine.
Did you restart your iPhone ?
 

ToyotaGuy23

macrumors newbie
Original poster
Jun 3, 2009
29
0
I've followed the instructions from here and it works fine.
Did you restart your iPhone ?

Yes I did, I guess maybe that file had the incorrect formatting...?
Anyway those instructions worked for me too.
Thanks so much for posting it!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.