Monday 25 May 2015

Modify Host file to Block Specific Website(s) on Different OS's


What is Host File?

The Hosts file is is used by OS to map host names to IP addresses. It is located deep down in the Windows folder.

In this article, I will show how to modify a host file to block website(s) on the computer with different OS's;
  • Windows
  • Linux
  • Mac OS

Windows:

In Windows, you are needed to open up the hosts files as an Adminsitrator.
1. Open Notepad as Administrator (otherwise file can not be modified);




2. Now select File and click Open then go to the location as per your OS;


Locations as per OS:
  • Windows 95/98/Me: C:\Windows\
  • Windows NT/2000/XP: C:\Winnt\System32\drivers\etc\ or C:\Windows\System32\drivers\etc\
  • Windows XP Home/Vista/Windows 7: C:\Windows\System32\drivers\etc\
  • Windows 8/8.1: C:\Windows\System32\drivers\etc\


3. Now, we need to open our hosts file, as the Host file is not a standard host file so it will not show by default, you have to change the File Type from Text Documents(*.txt) to All Files so it will be visible and then open the hosts file;




4. Be sure to make a backup of your hosts file in case if you will do anything wrong. As the hosts file will get open, edit the file with the site which you want to block, add the website just below the last # with the IP Address 0.0.0.0 so that it will get directed nowhere, i have added only single site but you can add multiple sites, one website with IP Address in per line;



4. Now press Crtl + s to save the file, and check if your entered site is running or not, in the screenshot below that it is blocked, you can revert the changes to make it working again.


Ubuntu (Linux):
In Ubuntu and many other Linux distro’s hosts file can be directly edited in the terminal. Like Windows in which file is needed to be opened as Administrator, now in Linux file is needed to be opened as root so the sudo is used to file the file as root.



1. Open up the terminal and enter the command sudo vim /etc/hosts/



Locations as per OS:
  •  Linux/Unix: /etc/hosts

2. Be sure to make a backup of your hosts file in case if you will do anything wrong. As the hosts file will get open, edit the file with the site which you want to block, add the website with the IP Address 0.0.0.0 so that it will get directed nowhere, i have added only single site but you can add multiple sites, one website with IP Address in per line, I have edited it to redirect Facebook into nothing;



3. Now press Crtl + s to save the file, and check if your entered site is running or not, in the screenshot below that it is blocked, you can revert the changes to make it working again.


Mac OS:
Accessing the hosts file in Mac OS is very similar to Ubuntu.

1. Open up the terminal(Applications -> Utilities -> Terminal) and enter the command sudo vim /private/etc/hosts/

Its will ask for a user password, enter it.



Locations as per OS:
  •  Mac OS(all versions): /private/etc/hosts/

2. Be sure to make a backup of your hosts file in case if you will do anything wrong. As the hosts file will get open, edit the file with the site which you want to block, add the website with the IP Address 0.0.0.0 so that it will get directed nowhere, i have added only single site but you can add multiple sites, one website with IP Address in per line, I have edited it to redirect Yahoo into nothing;


3. When you are done, press Control + O to save the file and return to accept the file name, Exit the editor by pressing Control + X. This takes you back to the terminal screen and check if your entered site is running or not, in the screenshot below that it is blocked, you can revert the changes to make it working again.



Its all done now.

Note: Do Not Use Any Tutorial Of This Blog To Harm Anyone. This Is Only For Educational Purpose. I Will Not Be Responsible For Anything Done By You.



Do you my like Articles..?

Get Free Email Updates Daily!

Follow us!

Categories:

8 comments:

  1. I strongly recommend SPYTECHENTERPRISE@GMAIL.COM , last week he helped me spy on my husband when he was cheating of me, he served as a personal investigator to me by helping me spy on my husband's phone activities like facebook, email, whatsapp, calls, skype and others. am sure someone out there is looking for how to solve his relationship problems, contact him (SPYTECHENTERPRISE@GMAIL.COM ) or call +1 315 355 0337 tell him from Linda

    ReplyDelete
    Replies

    1. INTERNET SCAM ALERT‼️

      The internet today is full of SCAM ADS, mostly in comments of various sites and blogs. A large number of individuals have been victims of scam and lost a lot of money to SCAMMERS. Most of the common scam you can see
      ❌BANK LOAN SCAM. ❌CRYPTO INVESTMENT SCAM.
      ❌LOTTERY SCAM. ❌HACKING SCAM. and lost more......

      ✳️The big Question is “Can someone who is a victim of Scam get their money back⁉️
      I will say yes, and will tell you how.

      The only way to Recovery your is to hire a Hacker who will help you take back your money from this Scammers and today is your lucky day, you just met the guys perfect for the job.

      WHO ARE WE❔❔
      We are PYTHONAX, A group of skilled Hackers who have dedicated our time to help individuals get back thier money from INTERNET SCAMMERS. There is a research that was carried out to determine the amount of money lost through Scam, and it was confirmed that over USD $3 billion annually, millions of people get scammed everyday.

      HOW DO WE OPERATE❔
      We first of all study the scammer(s) brought to us by hacking the device(phone or computer) to get information of How, Where, this person keeps money he/she as defrauded people of ( so many of this scammers don’t actually save the money in banks, they mostly stack the money in a Bitcoin wallet, that way it is safe and untraceable to authorities) and we work on a strategy to get back the money and give it back to whom they have defrauded.

      Contacting us is simple, just give us a message through the email below.
      New Email📧-: HELP@PYTHONAX.TECH
      Old 📧 -: SERVICES@PYTHONAX.TECH

      If you a victim of internet scam or you know someone who is, make contact to us immediately. You are 💯 % safe to contact us, our email is very secure.



      We also provide Legit Hacking Services such as-:
      🔸Phone Hacking/Cloning
      🔸Email Hacking & Password Recovery
      🔸Social Media Hacking & Passowrd Recovery
      🔸Deleted Files Recovery 🔸Mobil Tracking
      🔸Virus detection & Elimination. e.t.c

      Email-: HACKSERVICES@PYTHONAX.TECH




      Pythonax.
      2023 © All Right Reserved.









      Delete
  2. linnyarzar.184@gmail.com to security software all to free auto login master logkey to automait complease login to other usear internation computer to phone memory security to computer to phone keyboards all to need auto login to account setting phone number to email all to save automait complease information all to auto buckup downloding to other usear computer to phone memory security all to need resear update to only one by master logkey to only one security logkey drive to other usear account setting computer to phone to keyboard memory all to unlogout update

    ReplyDelete
  3. You want to know what you spouse does with their phones,you want to know what happens when you are away from home,do you need a classified hacker to hack,you need to upgrade your credit score and delete your criminal records,contact victorhacks@gmail.com

    ReplyDelete
  4. Are you interested in any kinds of hacking services?
    Feel free to contact TECHNECHHACKS.

    For years now we’ve helped so many organizations and companies in hacking services.
    TECHNECHHACKS is a team of certified hackers that has their own specialty and they are five star rated hackers.

    We give out jobs to hackers (gurus only) to those willing to work, with or without a degree, to speed up the availability of time given to jobs!!

    Thus an online binary decoding exam will be set for those who needs employment under the teams establishment.


    we deal with the total functioning of sites like,


    • SOCIAL MEDIA (Facebook, Twitter, Instagram, Snapchat, google hangout etc.)

    • SCHOOL GRADES

    • IOS/OS

    • CREDIT SCORES

    • BANK ACCOUNTS

    • SPOUSES PHONE

    Our special agents are five star rated agents that specializes in the following, and will specially be assigned to you for a special job well DONE.

    • WESTERN UNION TRANSFER

    • CREDIT CARDS INSTALLATION

    • MONEY FLIPPING

    • CRIMINAL RECORDS

    • BTC RECOVERY

    • BTC MINING

    • BTC INVESTMENT

    Thus bewere of scammers because most persons are been scammed and they ended up getting all solutions to their cyber bullies and attacks by US.

    I am Jason williams one of the leading hack agent.

    PURPOSE IS TO GET YOUR JOBS DONE AT EXACTLY NEEDED TIME REQUESTED!!!



    And our WORK SUCCESS IS 100%!!!



    We’re always available for you when you need help.

    Contact or write us on:

    Technechhacks@gmail.com

    SIGNED....!

    Jason. W

    TECHNECHHACKS
    2021©️All Right Reserved

    ReplyDelete
  5. Cyberspaceshield is a company with group of certified hacker, who are always ready to assist you with all your cyber problems.

    We’ve been in existence for ages now, we are reliable and helpful in terms of cyber bullying.

    We can help you get all your cyber threats and bullies solved in less than what you can ever imagine.

    These are somethings we specializes on:

    ➡️ Phone Hacks

    ➡️ Credit scores

    ➡️ Social media Hacks (Facebook, Instagram, tik tok).

    ➡️ Binary options

    ➡️ Binary Recovery

    ➡️ Clear criminal records etc.


    The internet is full of scammers, that’s why we’re here to help you fight them out.

    If you have been a victim of scam, don’t hesitate to write us on

    EMAIL: Cyberspaceshield@gmail.com

    Thank you!!!

    ReplyDelete
  6. LEGIT FULLZ & TOOLS STORE

    Hello to All !

    We are offering all types of tools & Fullz on discounted price.
    If you are in search of anything regarding fullz, tools, tutorials, Hack Pack, etc
    Feel Free to contact

    ***CONTACT 24/7***
    **Telegram > @leadsupplier
    **ICQ > 752822040
    **Skype > Peeterhacks
    **Wicker me > peeterhacks

    "SSN LEADS/FULLZ AVAILABLE"
    "TOOLS & TUTORIALS AVAILABLE FOR HACKING, SPAMMING,
    CARDING, CASHOUT, CLONING, SCRIPTING ETC"

    **************************************
    "Fresh Spammed SSN Fullz info included"
    >>SSN FULLZ with complete info
    >>CC With CVV Fullz USA
    >>FULLZ FOR SBA, PUA & TAX RETURN FILLING
    >>USA I.D Photos Front & Back
    >>High Credit Score fullz (700+ Scores)
    >>DL number, Employee Details, Bank Details Included
    >>Complete Premium Info with Relative Info

    ***************************************
    COMPLETE GUIDE FOR TUTORIALS & TOOLS

    "SPAMMING" "HACKING" "CARDING" "CASH OUT"
    "KALI LINUX" "BLOCKCHAIN BLUE PRINTS" "SCRIPTING"
    "FRAUD BIBLE"

    "TOOLS & TUTORIALS LIST"
    =>Ethical Hacking Ebooks, Tools & Tutorials
    =>Bitcoin Hacking
    =>Kali Linux
    =>Fraud Bible
    =>RAT
    =>Keylogger & Keystroke Logger
    =>Whatsapp Hacking & Hacked Version of Whatsapp
    =>Facebook & Google Hacking
    =>Bitcoin Flasher
    =>SQL Injector
    =>Premium Logs (PayPal/Amazon/Coinbase/Netflix/FedEx/Banks)
    =>Bitcoin Cracker
    =>SMTP Linux Root
    =>Shell Scripting
    =>DUMPS with pins track 1 and 2 with & without pin
    =>SMTP's, Safe Socks, Rdp's brute
    =>PHP mailer
    =>SMS Sender & Email Blaster
    =>Cpanel
    =>Server I.P's & Proxies
    =>Viruses & VPN's
    =>HQ Email Combo (Gmail, Yahoo, Hotmail, MSN, AOL, etc.)

    *Serious buyers will always welcome
    *Price will be reduce in bulk order
    *Discount offers will gives to serious buyers
    *Hope we do a great business together

    ===>Contact 24/7<===
    ==>Telegram > @leadsupplier
    ==>ICQ > 752822040
    ==>Skype > Peeterhacks
    ==>Wicker me > peeterhacks

    ReplyDelete
  7. Fullz/Pros/Leads With Complete Info
    Tools & Tutorials For Hac-king/Spa-mming/Card-ing

    CC FULLZ
    SSN DOB FULLZ
    SSN+DOB+DL FULLZ
    HIGH CREDIT SCORES FULLZ 700+
    FULLZ FOR SBA/PUA/UI/TAX RETURN
    PREMIUM FULLZ
    BULK FULLZ
    DUMPS WITH PIN CODES

    -----CONTACT HERE-----
    @leadsupplier - Tele-gram
    7528-220-40 - I C Q
    peeterhacks - Skype/Wickr

    ALL TOOLS & TUTORIALS
    Hac-king
    Spam-ming
    Car-ding
    Kali Linux Master Class
    Ke-ylogg-ers
    BTC Cracker/Flasher
    FB/WA Hac-king Stuff
    Combos
    Senders (SMS/EMAIL)
    Smtp's/rdp's/cpanels/shells

    @killhacks - TELE GR
    752 82 20 40 - I.C.Q

    Just Feel Free to ask for any tool
    24/7 Response
    Payment mode crypto currencies
    Invalid stuff will be replaced/No refund

    ReplyDelete

Please Comment Here To Inform Us Your Review About It. Thank You