EDITING HOSTS - Why I do not find the file on MacBookPro

I am not so expert with Unix.
I edited my Hosts file adding text from http://www.mvps.org/winhelp2002/hosts.htm and it works well on my iMac greatly reduceing the unwanted popups.
Now I try to do the same on my MacBookPro but it seems impossible to find the Hosts file and even Private and etc folders... any suggestion ??
Second question: which is the risk of a wrong editing ? I always keep a copy of the original Hosts file. If there is even the risk of boot made impossible it should always be possible to enter the HD from a second Mac via FW and change the Hosts file or am I wrong ?
Thanks

I edited my Hosts file adding text from http://www.mvps.org/winhelp2002/hosts.htm and it works well on my iMac greatly reduceing the unwanted popups.
I've found the worst pop-up offender is Flash.
I would suggest trying "ClickToFlash" <http://clicktoflash.com/> on Safari.
FlashBlock <http://flashblock.mozdev.org/> for Firefox.
Actually FlashBlock exists for several browsers (Google is your friend).
A Flash blocking add-on will still allow you to play Flash, you just have to click on the blank image with the Start Icon before the add-on will load the Flash content.
As an added bonus, keeping Flash from running by default has a tendency to extend your laptop battery time between charges.
After blocking Flash, the browsers built-in pop-up blockers should get most of the rest, and if there is a really offensive Ad, you can also use an Ad blocking add-on as mentioned by etresoft. I use one of those as well, but ever since I installed a Flash blocking add-on, I have not really needed to use the Ad blocking add-on. There are several Ad blocking add-ons for Safari as well as other browsers. Try searching MacUpdate.com as well as Google.
With respect to editing /etc/hosts. If you are careful, and as you said you did this before, they you can most likely do it again. However, I would point out that it is a pain to keep updating the /etc/hosts file as you find yet another offending Ad or pop-up. Plus maybe someday you find you need to visit that site (OK, maybe that is stretching it), but what if you do? The static nature of /etc/hosts means you would be blocked, and most likely never think it was because of /etc/hosts. This is also why I suggest using a Flash blocking add-on, and if you find you need it an Ad blocking add-on.
As far as dangers, you could loose localhost capabilities (actually very useful), or mess up DNS lookups. So it is a very good idea to keep the original around just in case. Another danger would be editing /etc/hosts with the wrong utility, and accidentally turning it into a Rich Text format file, or (yuck) a Microsoft Word document nano (anyone could use it), vim (steep learning curve), emacs (an operating system pretending to be an editor), TextWrangler (GUI), Fraise (GUI) are all safe text editors.

Similar Messages

  • I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it.  I want to come back to the previosu version.  why is it so complicated.  Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.

    I have upgrade ios 6 to ios7 on my iphone 5.  I do NOT like it at all.   I want to come back to the previous version.  why is it so complicated? Why can I not find the instruction strait from apple? This is the worst possible upgrade ever.  It make me think of when ericsson got sold to Sony....drastic PC change.
    I would like to have simple instruction on how to downgrade.
    It feel like a change that I did not ask for , ok I push the upgrade buttom, but really this is the worst update aver!
    HELP!

    iPhone User Guide (For iOS 7 Software)Sep 20, 2013 - 23 MB

  • Help:Can not find the file in jar!

    Hello everyone:
    I build a project using Netbeans 5.0 and make a jar file with it...
    The code in the project as follows will throw an exception described that it can not find the file named datasource-config.xml
    String dataFilePath = getClass().getResource(dataFile).getPath();
    //System.out.println("filepath:"+dataFilePath);
    InputStream input = new FileInputStream(dataFilePath);
    when I run the project with the main() function as an entry it works perfectly and output:
    filepath:/C:/projects/java_project/search/build/classes/com/cn/wxjt/lucene/config/datasource-config.xml
    But when I compressed the project with jar and run it , it will show:
    filepath:file:/C:/projects/java_project/search/dist/search.jar!/com/cn/wxjt/lucene/config/datasource-config.xml
    there is a (!) between search.jar and /com/cn/wxjt...
    I dont know why I generate a ! symbol in the file path... Is it cause the exception->
    java.io.FileNotFoundException: file:\C:\projects\java_project\search\dist\search.jar!\com\cn\wxjt\lucene\config\datasource-config.xml
    If you have any idea, plz tell me.
    Thank you and best wishes to you !
    :)

    If the file you want to read is in your jar file, use
    getClass ().getResourceAsStream
    (relative_path_file_name)Hope that help,
    Jackhey jack i want to open the file as new File
    i m using this.getClass().getResource("resource/backend.xml");
    the resource is the directory inside the jar file.
    when i prints the url it shows:
    the jar file is in the WORK directory
    URL : jar:file:/home/neeraj/WORK/show.jar!/resource/backend.xml
    now when i creates new File using the url.getFile() method the file does not exist.
    although the same programs runs well when i uses the InputStream
    so plz tell me cant I create a new File from the above method????
    thanks in advance
    with regards
    neeraj

  • Error: Could not find the file "flash.ocx"

    I have been receiving the error COULD NOT FIND THE FILE
    "FLASH.OCX" for the past couple of months - I have been watching
    the message boards and have seen a lot of "fixes" and beta's come
    up errors (not sure that it's this exact error though).
    I get this error continuously throughout the day - no matter
    if I have nothing running on my computer or I have 10 things open.
    This morning it occurred to me that my screen saver is not coming
    on and it seems to me that the above errror is popping up everytime
    my screen saver should start. I HAVE TIMED THIS TODAY AND CHANGED
    HOW LONG BEFORE MY SCREEN SAVER STARTS - AND IT IS DEFINITELY
    GETTING THE ERROR EVERYTIME THE SCREEN SAVER IS TRYING TO START.
    Last week, I deleted the version of Flash that I had and then
    re-installed; still getting the error.
    I was getting the error when I had IE6 so I thought maybe
    switching to IE7 would correct it - but it didn't (that was a few
    weeks ago).
    My computer does not freeze up but it is SOOO annoying to
    continually throughout the day get this error.
    IE7.0
    ADOBE 9,0,28,0
    WINDOWS XP - SP2
    PLEASE HELP!

    Ah-ah! The workaround is to map my network folder to a drive, say... M:\
    So, when I select Edit->Edit in Audition->Sequence, I can select the Browse button to alter the Path destination. Instead of seeing '\\Zeus\Projects\...', I select the mapped M: drive so the path reads 'M:\Projects\...' instead.
    Then, Audition loads and is able to find the sequence or clip.
    So... that solves my problem!

  • Could not find the file "flash.ocx"

    I have Windows XP and the latest version of Flash but keep
    getting a error message popping up saying - Could not find the file
    "flash.ocx"
    Does anyone know how i can sort out this problem!
    Thanks!

    Salutations rajmak2000, tu nous disais :
    > I have Windows XP and the latest version of Flash but
    keep getting a
    > error message popping up saying - Could not find the
    file "flash.ocx"
    Hi !
    If you've got the latest version of flash, the message should
    says
    something like "could not find the file flash8b.ocx" instead
    of
    "flash.ocx" (who is, it seems, flash 7.0).
    I suspect, once again, that registry rights are broken.
    Try this script :
    http://docxp.mvps.org/b1n/FlashRepair.exe
    Bye
    ~Jean-Marc~
    http://docxp.mvps.org
    http://msmvps.com/blogs/docxp/

  • Post 10.3: Could not find the file "hw.kb" to install.

    I'm getting this error on my 10.3 clients.
    "Could not find the file "hw.kb" to install"
    I think this is the April PRU...I have applied the post 10.3 fix and this is still not working :/
    Full Message:
    GenericActions.FileCouldNotBeFound{hw.kb}
    Message ID: GenericActions.FileCouldNotBeFound
    Related Objects: /System/System Bundles/102d38812c9437a05ee01e8bc93369f0

    This was not related to the 10.3 update, atleast not directly.
    I deleted the April PRU in system updates, checked for updates, and reapplied.
    This solved my issue.

  • Please help!  Safari does not start due to a plugin failure. How can I remove librooksbas.dylib. Without being able to open safari. Finder does not find the file.

    Please help.
    iSafari does not start up due to an error caused by plug in librooksbas.dylib.
    How can I remove this plugin without opening safari. Finder does not find the file, nor any other plugin.
    Eric

    For future reference, Safari Plugins are kept in Macintosh HD> Library> Internet Plugins.
    To unhide the Library folder, open up Terminal (just type"Terminal" into spotlight) and type:
    chflags nohidden ~/Library

  • I have transferred a load of files from my PC to my iMac using the migration assistant.  The message on both machines say that the process was successful bu tI can not find the files on the mac.  Any ideas?

    I have transferred a load of files from my PC to my iMac using the migration assistant.  The message on both machines say that the process was successful but I can not find the files on the mac.  Any ideas?

    When you use Migration Assitant it creates another user account and puts your files there. Please log out of your normal account and log into the new account. Had you use Setup Assistant when it asked if you were migrating that would not have occured. You have a couple of options, combine the two accounts (not recommended) or start over, use Setup Assistant and have everything in one user account. Here is a link to Pondin's guide for Lion Setup Assistant tips however if you want to combine the two accounts he has addressed that in
    http://pondini.org/OSX/Transfer.html

  • My itunes are on windows 97. just got windows 7 laptop. when i load new software on my new laptop it shows all my windows 97 music/audiobooks but can not find the files. how do I link them

    my itunes are on windows 97. just got windows 7 laptop. when i load new software on my new laptop it shows all my windows 97 music/audiobooks but can not find the files. how do I link them

    iDevices are not and have never been backup devices.
    Authorizing a computer does not cause media to magically appear.
    Media is only where the user puts it.
    Copy the ENTIRE iTunes folder from the old computer to the new computer.

  • Why I can not find the application of whatsapp?

    I did upgrade to the iPhone. And I wanted to download the application of whatsapp again but she did not appear in appstore.
    Why not find the application?

    Here is the info from Whatsapp official twitter: "Sorry, WhatsApp is temporarily unavailable on iTunes. We submitted a new version and are awaiting approval and publication by Apple"
    https://twitter.com/#!/WhatsApp

  • Why I can not find the backgound change button in the iBooks created by the iBooks author?

    Every iBooks download in the iBooks store all have this option, why I can not find it in the iBooks created by myself? Is it the benefit for the iBooks store stuffs only?
    Thanks for the help in advance!

    Those options are only available for books _not_ made using iBooks Author.
    iBooks Author outputs a hybrid e-pub of Apple's design that only works on iPad.
    Your example above is from a book using a standard e-pub format that works on both iPhone and iPad.
    And example of an OS X application that outputs a standard e-pub file is Pages.

  • While loading site collection in SharePoint 2010, Error shows "Could not find the file or assembly or one of its dependencies. The system cannot find the file specified."

    I have restored one web application in SharePoint Server 2010 from a different domain and  can complete successfully. Changed each users domain also to old to new one by using Move-SPUser. But While accessing the site collection it is showing an error
    that  "Could not load file or assembly 'A##.SP.Intranet, Version=1.0.0.0, Culture=neutral, PublicKeyToken=03b4f320ebedaffc' or one of its dependencies. The system cannot find the file specified."
    What may be the reason? Please help me to solve this issue since I am stuck up on this .
    Regards 
    Mine1981

    Hi Nico
    Martens,
    Thank you for your reply. But
    how can I find out the custom solutions in the source farm. I didn't got any other details regarding this farm other than WSS_Content, Web application Database, SharePoint_Config database back ups.
    Please help me to solve the
    issue.
    Regards
    Mine

  • Everytime when I quit FCP X, I could not find the file that was created previously. I'm aware files (events/projects) are saved automatically. But strangely when I reopen FCP, the event/projects are not listed.

    I need help here. Saved events/projects are not visible or listed when I reopen FCP X. Tried to open from the event folder don't seem to work.
    I'm using MacOS X 10.6.8 and just bought FCP X 10.1.
    Help.

    No. I'm not using two hard drives. Files saved on MacBook Pro HDD. Only time I use the second HD is for backup but while working on FCP X.
    This is unclear.
    Do you have another HD with FCP X projects and / or events?
    If you do (whether it's a backup or not) it will cause the exact problem you described. Make sure any other drives with FCP X events or projects are turned off before you launch FCP X.
    If you don't have a second drive with events or projects, I suggest you try trashing your preferences.
    Faults like this can sometimes be fixed by clearing out FCP X's preferences (for some reason, they get knotted up from time to time).
    Download Digital Rebellion's Preference Manager (free, simple to use, and quite safe).
    http://www.digitalrebellion.com/prefman/
    With Pref Manager, you can backup the Prefs first, then if trashing makes no difference, you can restore all your settings.
    If you trash them and don't restore them, you will need to go over your FCP X settings again, so it's a great idea to backup Preferences from time to time when FCP X is working well, then you can ditch the bad prefs and restore from your (Digital Rebellion) backup.
    muhammadfromsingapore wrote:
    Thks Bob. No. I'm not using two hard drives. Files saved on MacBook Pro HDD. Only time I use the second HD is for backup but while working on FCP X. I'm getting very frustrated whenever I return to work on the video to find the file 'missing'. I know its there but it's just not showing up on the Event Browser. Sigh!!
    How come you marked your own post as "Correct Answer" when all it does is tell Bob he's wrong? This will mislead people.
    Andy

  • Why can I not find the Rubber Stamp icon in Fireworks 8

    Using Fireworks 8:
    ok - fairly new to all this - but I am trying to clone pixels and am looking for the rubber stamp icon.  My "Bitmap" menu has marquee, lasso, magic wand, brush, pencil, eraser, burn & red eye icons on it, and under "Assets" (under Image Editing tab) in the other toolbar I have red eye, crop, scale, blur, sharpen, dodge and burn icons. No rubber stamp icon to be found.  I am trying to edit a .jpg file (photo).  I have read that it only works on bitmap files so I have saved it as a .bmp but still no luck finding the rubber stamp icon.  Where am I going wrong please?!
    Many thanks

    Panic not... it has only taken me all afternoon but there must have been a error as I have just reloaded the app and holding the mouse button down now produces a menu of options on the bitmap menu, so the user can toggles from one to the other.

  • Why I can not find the 'dbca' file in any where (linux)

    Under $ORACLE_HOME/bin ,I cannot find the 'dbca 'file,why ?should I config any others?
    Before I install oracle on linux ,I only checked the following use the command "rpm -q gcc make binutils openmotif"
    so I only install
    'gcc-4.1.2.42.el5'
    'make-3.81-3.el5'
    'binutils-2.17.50.0.6-6.el5'
    'openmotif-2.3.0-0.5.el5'
    my oracle version is oracle -xe-univ-0.2.0.1-1.0.i386,
    linux is redhat enterprise linux 5 (64bit)
    thanks!
    Edited by: user12469990 on 2010-1-18 下午6:01

    What dbca file?
    The installation docs are at http://docs.oracle.com.
    Follow them if you wish to be successful and that means don't use unsupported versions of Linux.
    Also you can use these links for help:
    http://www.morganslibrary.org/reference/linux_oracle_inst10g.html
    http://www.morganslibrary.org/reference/linux_oracle_inst11g.html
    http://www.morganslibrary.org/reference/linux_oracle_inst11gR2.html

Maybe you are looking for