Stop Windows Spying with hosts file

Поделиться
HTML-код
  • Опубликовано: 28 дек 2024

Комментарии • 1,4 тыс.

  • @AGuywhohasGoodTaste
    @AGuywhohasGoodTaste Год назад +1237

    Brought back so many memories with that notepad intro. You should do a video entirely like that for April Fools, it would be quite funny.

    • @THW69
      @THW69 Год назад +113

      But in 360p, 4/3 and windows xp

    • @timetraveler0002
      @timetraveler0002 Год назад +43

      notepad tutorials are among the top quality content tutorials

    • @elias9725
      @elias9725 Год назад +43

      You gotta also have Unregistered HyperCam 2

    • @SMGJohn
      @SMGJohn Год назад +20

      Do not forget classic Windows Movie Maker blue background with comic sans font.

    • @ZergRadio
      @ZergRadio Год назад

      How to I get rid of that damn Telemetry crap.

  • @peterwassmuth4014
    @peterwassmuth4014 Год назад +545

    Thank You so much for being out there and teaching
    the average PC users to protect themselves!
    You are amazing!!

    • @macethorns1168
      @macethorns1168 Год назад

      This channel is clown world and they're giving you snake oil.

    • @embreis2257
      @embreis2257 11 месяцев назад

      does it only apply to people who use _Edge_ as a browser? I haven't done this host.file thingy and my browsers don't annoy with with these 'notifications' or clutter

  • @Tesko249clips
    @Tesko249clips Год назад +3

    I recently stumbled upon the Windows "news feed" when I accidentally hit Win + W. The amount and type of preloaded content in there is horrendous! But this trick took care of that too. No more BS content that I didn't ask for. Thanks!

  • @Krazy0
    @Krazy0 Год назад +476

    Just a quick reminder for anybody who notices addresses other than the default in hosts file, you might find some addresses of Adobe or some other companies, where most cracked software rely on the same way to block companies from blocking you from accessing their software.

    • @OnlyKaerius
      @OnlyKaerius Год назад +62

      My host file is fairly gigantic, but it's not cracked software adding to it, it's spybot search&destroy, immunizing me from a bunch of known malicious addresses.

    • @Krazy0
      @Krazy0 Год назад +21

      @@OnlyKaerius That's actually a nice way to prevent some malicious addresses, but how would it prevent new or other malicious addresses that can simply change its address, got any ideas?

    • @OnlyKaerius
      @OnlyKaerius Год назад +30

      @@Krazy0Not really, you can't pre-emptively exclude bad sites before they exist, you'd basically have to disable the internet, or go to a whitelist-only solution, which would be very restrictive. So just complement with antivirus.

    • @Krazy0
      @Krazy0 Год назад +9

      @@OnlyKaerius I remember there was a site that discloses the latest reported harmful sites, we might be able to have a simple script that scraps all the reported sites and then put it into that file, which in theory could make it work better, but I actually think having a local VPN-like program that blocks access to sites included in that list would be much better in terms of usability, I wouldn't want to have to scrap that site when I can simply have a script that prevents access to them in the first place rather than some file that I've to follow its protocol to setup the sites.

    • @すべてに興味を失う
      @すべてに興味を失う Год назад +8

      So, according to your comment, if I block a specific host for Adobe (for example), should I be able to block license verifications and use any software without paying them? That sounds too easy XD. However, in 2017 and before, we only needed to change a few characters of the trial license key in a local file to use their programs for free. So, I don't know; this looks like a big mistake from Adobe ^^'

  • @petewarby7158
    @petewarby7158 11 месяцев назад +9

    Brilliant. I've just upgraded from Windows7 to 11 on a new laptop, using a local account. I'll add to the hosts file today. And thank you for including the text with the description!

  • @m12652
    @m12652 Год назад +296

    This is good but manually keeping the hosts file up to date is tricky. If you really want to block efficiently get a Raspberry Pie and install pie-hole. You can download lists of millions of domains that track or for some reason you might want to block. Out of the box, this blocked about 25% of my network traffic.
    The really annoying thing for me is that if that 25% is typical then roughly 25% of the worlds cost for internet traffic is being wasted on marketing and tracking that most of us don't need or want. That's our money they're spending and there's no law to regulate it...

    • @missivyplatinum
      @missivyplatinum Год назад +32

      I hadn't looked at it that way but I couldn't agree more.

    • @RezaQin
      @RezaQin Год назад +19

      Ah yes, get th government involved. Nothing bad will happen after that!

    • @missivyplatinum
      @missivyplatinum Год назад +5

      @@RezaQin lmaooo you heard about the FCC supposedly getting involved in regulating ISPs right 😭

    • @solitarelee6200
      @solitarelee6200 Год назад +11

      Sometimes I go down a doom hole about how much completely needless trash like that is contributing to global warming and the depletion of finite materials and I have to go stare at a wall for a few hours. 8|

    • @m12652
      @m12652 Год назад +3

      @@RezaQin lol when I talk about law I don't mean government. In the UK at least, law is a victim of government.

  • @timetraveller6643
    @timetraveller6643 Год назад +219

    THAT was the most amazing instruction ever. I'm telling EVERYBODY how to do that and where I learned it. Thank you a million plus one Leo.

    • @macethorns1168
      @macethorns1168 Год назад +1

      Leo is exactly as tech knowledgeable as the "tracer T" kid.

  • @RadioactiveBlueberry
    @RadioactiveBlueberry Год назад +20

    I highly appreciate that the list is right at the beginning of the video AND in the description, instead of scrubbing around to find such list.

    • @macethorns1168
      @macethorns1168 Год назад

      That was nice, yes, but it doesn't change that this "list" is useless as tits on a nun.

  • @sofiaknyazeva
    @sofiaknyazeva Год назад +185

    Imagine one of Microsoft Employee (those who closely work with Windows) watches this video, and on next morning with a update whitelist these tracking sites (even if listed in hosts) file...

    • @pcsecuritychannel
      @pcsecuritychannel  Год назад +149

      Nah, they are more likely to use this tweak and thumbs up the video. That edge tab is everyone's dream.

    • @lkzMini
      @lkzMini Год назад

      @@pcsecuritychannelAgree.

    • @somerandomguy001
      @somerandomguy001 Год назад

      @@pcsecuritychannel facts

    • @rizkyadiyanto7922
      @rizkyadiyanto7922 Год назад +32

      not even microsoft employees want to be spyed on...

    • @luigideff
      @luigideff Год назад

      ​@@pcsecuritychannel😂😂

  • @youropiniondoesnotmatter
    @youropiniondoesnotmatter Год назад +7

    Thank you very much for this!! I literally just finished a DNS section of a Udemy lecture that focused on the hosts file. The RUclips algorithm blessed me with this video. Subbed, much appreciated!

  • @jagdtigger
    @jagdtigger Год назад +56

    Except windows can and will ignore the hosts file when MS feels like it would negatively impact """security""".......
    /EDIT And just as an FYI to anyone, "cloud" and "lifetime plan" in the same offer always going to end badly...... (we seen several examples of this already, cloud isnt free and you cant cover recurring expenses with a one time purchase)

    • @DFX2KX
      @DFX2KX Год назад +3

      you can also block those sites in your router, too.

    • @jagdtigger
      @jagdtigger Год назад +6

      @@DFX2KX Only if you have something that preferably can load lists from url, besides this is just a wack-a-mole game which simply doesnt worth it. If you can just ditch windows and avoid apple at all costs (they do the same thing)....

    • @SpaceCadet4Jesus
      @SpaceCadet4Jesus Год назад +6

      ​@@DFX2KXYou're router block list would run out of entries and your router would eventually slow up your network and increase it's workload.

    • @macethorns1168
      @macethorns1168 Год назад

      @@DFX2KX If blocking that list of a dozen sites was all it took to block "call home" then IT pros wouldn't have been fighting this shit for 7 years now.

    • @TheKetsa
      @TheKetsa Год назад

      ​@@SpaceCadet4Jesusso wrong

  • @forgottenprophet0
    @forgottenprophet0 Год назад +23

    They must have updated things. It no longer works.

    • @SweatySeoul
      @SweatySeoul 7 месяцев назад

      It still works. Make sure that file isn't a txt file. If you want to go over it again here's how.
      1. Save the text that is in this video's description
      2. SEARCH notepad in the windows search bar so you can right-click and run as administrator.
      3. Go to file, then open, then search file name "hosts" and be sure to change the file type to "all files" so you can find it.
      4. Open the hosts file
      5. Copy and paste the text as he does in the video
      6. Open Microsoft edge to check results
      If the webpage is not showing up blank, you need to go into the settings of edge by clicking the three horizontal dots in the top right. Then go to settings, privacy search and services, clear browsing data from all time ONLY IF you don't use Edge as the browser to access websites you have profiles saved in. If you do, you will be signed out of them on Edge and have to sign in again.
      If you are struggling to find it because of a different layout you have applied, use this link in your URL bar. ---> edge://settings/clearBrowserData

    • @ReverseShell1337
      @ReverseShell1337 5 месяцев назад +1

      It worked for me. This also a GitHub page that has much more hostnames you can copy/paste in to block msft

  • @mhoop1
    @mhoop1 Год назад +6

    i think they know about this. I did it and for about 10 seconds it worked, then the background image loaded, then one by one the settings menu on the top right populated, then the stories and advertisements filled in. It was kind of cool to watch.

  • @ManiacalV
    @ManiacalV Год назад +85

    This is very well done, especially for people who aren't terribly computer savvy. Great job, thank you for making this, it's the kind of tutorial I will be sharing a lot in the future.

    • @macethorns1168
      @macethorns1168 Год назад +2

      Very well done for a "fix" that doesn't do jack shit.

    • @Desmond-Dark
      @Desmond-Dark 7 месяцев назад +1

      @@macethorns1168 It doesn't work for you?

  • @negativez5298
    @negativez5298 Год назад +1

    absolutely rare rewind on the advertisement. well done internxt and TPCSC

  • @lkzMini
    @lkzMini Год назад +14

    I really likes Edge (as web browser), but i really hates all this telemetry from Microsoft. So... Im glad u sharing all this. Thanks!

  • @miketout
    @miketout Год назад +47

    Thank you! This is a great hack to get rid of much of the garbage and tracking that have gotten me to mostly replace Windows with Linux for good after being the Kernel Dev lead on Windows 95 and leading other work at Microsoft so many years ago. I still have a couple Windows machines running, and this has worked great! Liked AND subscribed.

    • @lazygardens
      @lazygardens Год назад

      You can use /etc/hosts for much the same purpose.

    • @lazygardens
      @lazygardens Год назад

      @@lindenreaper8683 That might be better ... I remembered that /etc/hosts can't take wildcards.

    • @lazygardens
      @lazygardens Год назад

      @@lindenreaper8683 I bailed from Windows for personal use after Win95, although I have a virtual machine for the tiny bit of software that I couldn't get Linux to run.

    • @atlantic_love
      @atlantic_love Год назад +1

      I call BS.

    • @lazygardens
      @lazygardens Год назад +1

      @@atlantic_love What is "BS"?
      Using the hosts file?
      Switching to Linux?

  • @frskngd
    @frskngd Год назад +16

    single handily one of the best video you probably ever posted on this channel, hopefully microsoft wont hide that folder or block access to it in a future update

    • @schnuus2006
      @schnuus2006 Год назад

      They haven't the last 25 years. If they might bypass hosts of their choice in future, they will completely give up trust of their Enterprise customers.

    • @macethorns1168
      @macethorns1168 Год назад

      Single handedly one of the most useless and worthless videos on RUclips you mean.

  • @peppergrowmienola4850
    @peppergrowmienola4850 Год назад +35

    This is a great tip. Another great tip is Edge's most useful feature. The ability to download a different browser. 🤷‍♂

    • @Tnargav
      @Tnargav Год назад

      You can download a different browser without a browser too ;)

  • @coreyperez13
    @coreyperez13 Год назад +5

    FINALLY!! Something on YT worth watching!
    Follow up. I just tried this and Notepad (as admin) will not save this file as a 'file', it will only save it as a .txt

    • @teutonicc
      @teutonicc Год назад +4

      after saving with the .txt go to rename and just remove .txt. will give warning but click ok

    • @brianburke3665
      @brianburke3665 10 месяцев назад +1

      Great! Thanks.

  • @Void_Dragon
    @Void_Dragon Год назад +20

    Powertoys has a Host file editor in it. If you want things to be blocked, make sure the switch for each line you want to be enabled is switched to on.

  • @SandBoxJohn
    @SandBoxJohn Год назад +32

    The host file is a legacy feature of TCP IP that was used to translate host name to IP address before the existence of DNS.
    I use the loop back address in a host file as an add blocker.

  • @fearfactory1189
    @fearfactory1189 Год назад +2

    I'm alright with that hosts thing, but at least you're making us aware so we're appreciative. Keep up the good uploads! :)

  • @robertoswalt319
    @robertoswalt319 Год назад +99

    I used this tactic to keep my children away from certain sites back in the day. It can work really well.

    • @YoloTub3
      @YoloTub3 Год назад +48

      Meanwhile I used proxy sites to bypass this tactic when I was a child. It works really well.

    • @redi6460
      @redi6460 Год назад +11

      As a child I never had access to computers, didn't go very well.

    • @rct999
      @rct999 Год назад +1

      Really? Do browsers even use the host file?

    • @kirilbarbov6949
      @kirilbarbov6949 Год назад

      @@rct999 Yes, they do. I use it on a daily basis for testing client websites at my work. Everything on your entire system that connects to the internet will use the settings you have configured in your hosts file.

    • @rusername
      @rusername Год назад

      @@rct999 yes? a lot of viruses use host file to block some websites

  • @SM-1010
    @SM-1010 Год назад +2

    The timing of this is amazing, I was just playing around and looking at the host file lol

  • @jsoares91
    @jsoares91 Год назад +55

    The only point i miss on these tutorials is that the machine still using compute resources to try this requests even if its going to timeout on loopback. Its really anoying especially if you have a computer with limited resources.

    • @thedavistheory7674
      @thedavistheory7674 Год назад +9

      Agreed

    • @marpintado
      @marpintado Год назад +5

      This could be better: en.wikipedia.org/wiki/Black_hole_(networking)

    • @cldream
      @cldream Год назад +2

      That unfortunately is going to happen. If it's program to upload data to third-parties, it will, unless you have the source code to remove the functionality.

    • @DontUseALLCAPSInTheD.mnTitle
      @DontUseALLCAPSInTheD.mnTitle Год назад

      Maybe use something like Windows 10 LTSC 2019 on a computer with "limited resources".

    • @macethorns1168
      @macethorns1168 Год назад

      It's fascinating to me that you know words like 'timeout" and "loopback" and believe that it's possible to work around M$ calling home with a dozen hosts file entries.

  • @MrSurfsAlot
    @MrSurfsAlot Год назад +2

    Already knew right where this file was but did not think of this. Brilliant

  • @jcdenton7914
    @jcdenton7914 Год назад +14

    You can probably make a script to run a hash of the hosts file upon reboot to alert you the moment it's been modified by some Windows update.

    • @Chuck8541
      @Chuck8541 Год назад

      I wish I could sync my pihole adblocker list to this host file. It would relieve some of the burden of the tiny pihole.
      I could then toggle domains on and off for troubleshooting and testing.

    • @SpaceCadet4Jesus
      @SpaceCadet4Jesus Год назад +5

      Waste of time. The host file hasn't changed since Windows 95, decades ago.

  • @cindyzxec
    @cindyzxec Год назад +2

    Cool Thanks for the addresses! You even had them in text in your description, making it easier to cut and paste!
    I actually did this for ads too. So most ads just come broken when I go to the web if not I try look at the source code and find their site and add it.

  • @mystixa
    @mystixa Год назад +27

    This is just bandaid advice. Yes it covers top level stuff like your browser, which is a good thing. Claiming it stops windows telemetry is overstating its use. You can block the IPs at the router level, just blocking the domain resolution on the computer is not enough. Also since windows 10, Defender has some addresses that it will block being saved into the hosts file, and some Defender updates that will just revert the file.

    • @pdmerritt
      @pdmerritt Год назад +1

      this is very true but sometimes there are whole blocks of ip's that those names resolve to so i guess this is better than nothing.

    • @macethorns1168
      @macethorns1168 Год назад +1

      There exists no way to stop Windows telemetry unless you have W10 Enterprise, and even that's doubtful.

    • @mystixa
      @mystixa Год назад

      Well thats just incorrect. Most of it can be stopped within windows itself. Then with a combination of internal and external firewalls all the rest can be taken care of as well. @@macethorns1168

    • @railworksamerica
      @railworksamerica 6 месяцев назад

      There’s probably something in regedit to fix that

  • @lynskyrd
    @lynskyrd Год назад +1

    I actually just added these hosts to my pfsense perimeter firewall. Now ALL my computers inside my network won't be accessing those 'spysites' and I won't have to edit any hosts files. Thanks for the tip- that's a good little list.

    • @delxiv
      @delxiv 8 месяцев назад

      Thank you for this. Just created the alias list and a new rule to block them. Worked - for 5 mins, then Edge somehow repopulated the main page later. Still keeping the pfsense entry though.

  • @arrongamez1388
    @arrongamez1388 Год назад +109

    If it wasn't for Windows being the best os for gaming, I would switch to Linux in a heartbeat.

    • @xXVibrantSnowXx
      @xXVibrantSnowXx Год назад +4

      I wouldn't

    • @abidkhairy..3863
      @abidkhairy..3863 Год назад +1

      I'm dual booting windows rn, with mac tho...

    • @gawlhysm
      @gawlhysm Год назад +1

      Same here

    • @shroomer3867
      @shroomer3867 Год назад +5

      It remains the best because certain companies are just plain lazy or specifically unsupportive of Linux.
      I’ve made the jump back when there wasn’t even BattleEye support for Linux and everything on my steam library was playable and at same or better performance than Windows.
      The only game not being able to run on it is currently Valorant because of its kernel level anti-cheat. But otherwise, almost all high-fidelity games are able to be played right and at even a better performance than on Windows due to less bloat on the CPU during gaming.

    • @arrongamez1388
      @arrongamez1388 Год назад +9

      @@shroomer3867 Linux is better performance wise, but not when it comes to gaming.

  • @MrZinguzi
    @MrZinguzi Год назад +8

    This can be taken to the next level by checking your "netstat" in CMD and blocking all those pesky outgoing connections you don't recognize and don't want.

    • @macethorns1168
      @macethorns1168 Год назад +1

      And at that point you will find out just how fucking useless this videos recommendations were.

  • @AriinPHD
    @AriinPHD 10 месяцев назад +1

    somehow it put a lump in my throat to see you record this on what looks like your actual work/home machine 😨 granted you are only editing the hosts file for this video, it feels strange to see a personal environment used for demonstration purposes. loving your video content and excited for both more of them and the malx project!

  • @RonSonntag
    @RonSonntag Год назад +3

    Nicely done! Thanks. I also use Pi Hole to block a huge number of add sites for my entire house (running on Raspberry Pi).

  • @Eliscio
    @Eliscio Год назад +1

    the intro had me hyped because the notepad videos were always the best and in detail

  • @bigtvjunky9119
    @bigtvjunky9119 Год назад +5

    You can turn off new tab 'content' in Edge settings. It's under settings 'Start, home, and new tabs' and 'New tab page' then customize your new tab page layout and content. Content > off.

    • @jairo8746
      @jairo8746 Год назад +6

      That doesn't prevent M$ from sending your data to third parties.

    • @309electronics5
      @309electronics5 Год назад

      ​​@@jairo8746but is there really a browser that does not do that these days? Many chromium browsers send data to third parties and advertisers

  • @warp00009
    @warp00009 Год назад +1

    Thanks for this info! I found a thousand or so dead DNS entries put in my hosts file by a freeware spy blocking program too. I hope this won't impact the performance of my local web server running on port 80!

  • @test-rj2vl
    @test-rj2vl Год назад +8

    Best part is that if your hosts file gets too good then windows defender thinks it's a virus and then you need to add exception. Also don't remember to make a backup because it has happened to me that windows update thought it knew better than me what should be in hosts file.

    • @MoiraWillenov
      @MoiraWillenov 4 месяца назад +1

      Or just turn off windows defender.

  • @gawlhysm
    @gawlhysm Год назад +1

    Danke!

  • @sticky170
    @sticky170 Год назад +8

    Great addition for more privacy. I also use Spybot Anti-Beacon that has some different features.

  • @corvusabaddon
    @corvusabaddon Год назад

    Thats a very interesting sponsor. I rarely see a non subscription service for cloud services nowadays.

  • @phaikyouser9499
    @phaikyouser9499 10 месяцев назад +4

    The thing is you never know what's going on under the hood, Windows could be collecting data over say 4 weeks, and every month sends a compressed encrypted file with all the info while it's doing an "update." You'd never know the difference.

  • @Officialtechfixed4u
    @Officialtechfixed4u 11 месяцев назад

    Im an 'industrial' style IT pro of nearly 40 years... and I'd never even considered doing this. Its, absolutely correct, and works instantly... HOWEVER, while I was doing it, I had some other processes running heavily in the backround..... historically referenced as 'hashing' ... anyhoo.... at the very second the new hosts file was saved, I had my other eye on the bit-rate (downstream) of my 'other processes' ... and as I hit enter, bit-rate literally doubled. Odd, but I'm not complaining.

  • @DR_1_1
    @DR_1_1 Год назад +8

    It should be mandatory for all OS and softtware to keep an updated list of ALL the servers they connect to, with a destcription of which exact data is collected and transfered, its exact use and the people who have access to it.
    This the same way we are forced to present an ID to have a personal data/internet connection, to give an email address and even name, telephone number for many registrations online!
    And also options to disable the transfer of data when not necessary!
    *All that in a user friendly option menu, not like these cookies popup windows that block the access to most websites today* !!!

    • @krzychaczu
      @krzychaczu Год назад

      For sure it's all covered somewhere in hundreds of pages of Terms of Service which nobody reads and just hits "accept".

    • @acehandler1530
      @acehandler1530 11 месяцев назад +1

      Compiling a mass of data like you suggest would cost some bucks - and you can be sure that the money-grubbers won't pay it. Do you want to pay to use the Internets (more than you do already)? Because that's what would happen - and once you subscribe...you're tracked! Lololol! Pay to have your personal info used, what a brilliant plan 😞

    • @douggale5962
      @douggale5962 11 месяцев назад

      That would work in the days when there was competition. Price fixing is rampant, and big software companies are destroying all of the small software companies, so they can gain a monopoly.

  • @Scriptッ
    @Scriptッ Год назад

    daamn. this showed up on homepage and started playing, i saw the notepad intro and got in for nostalgia, stayed for information

  • @jimsmith77901
    @jimsmith77901 Год назад +22

    I've been using a custom hosts file since I first learned of it, way back in like 1997. I found quite a few custom hosts files that people compiled to block porn, spam, tracking, etc, then customized those for my own purposes. Very handy information to have.

    • @DR_1_1
      @DR_1_1 Год назад +5

      This was the way to go before AdBlock and browser's integrated blockers...
      The issue is that they change their IP addresses on a regular basis, and you have new companies adding to the list all the time!
      I also have a 20 years old hosts file, I keep adding lines from time to time (even have google there, but it's almost impossible to block them, that way, too many variable IPs !)

    • @deebee201
      @deebee201 Год назад +2

      Really, do you know where I could find the host file made for anti-tracking

    • @macethorns1168
      @macethorns1168 Год назад

      Idiocy. These entries aren't going to block Windows from calling home.

    • @deebee201
      @deebee201 Год назад

      @@DR_1_1 but won't blocking the known numbers mitigate some of the traffic? And why hasn't automated a program that will look at current Google IPs and auto add them to fire wall block list

    • @PeterMoore350
      @PeterMoore350 Год назад +1

      same. Since late 90s also.

  • @riptoff433
    @riptoff433 Год назад

    An oldie but a goodie.
    Can be used to block ads an much more.
    Thanks for reviving this old true and tested method.

  • @thewelder3538
    @thewelder3538 Год назад +10

    What we all want to know is, WHAT system files are calling out to these sites? Blocking stuff with hosts file is just preventing a problem that already exists...
    I want to know what executables are making these calls. What dll files?

    • @Sypaka
      @Sypaka Год назад +3

      THIS. Is a good question. the next would be to patch those.

    • @thewelder3538
      @thewelder3538 Год назад

      @@Sypaka Precisely. It's likely to be some of the insane number of started services. The amount of services they've added since Windows 7 is just bonkers. Most of them no-body uses or will ever use. Just blatant spyware and data harvesting.

    • @macethorns1168
      @macethorns1168 Год назад

      That won't do any good, those system DLLs provide many other functions and there exists no way to stop them from spying while continuing to do their other jobs.

    • @thewelder3538
      @thewelder3538 Год назад +3

      @@macethorns1168 That's complete and utter nonsense. I patch stuff all the time to remove functionality that's not needed. That would be the same argument as patching a game protection and it not being playable afterwards.
      I've been coding a LONG time and if I knew what dlls to patch, I'd just debug and patch them. It's not even a big thing to do. It would have ZERO affect on their functionality unless their functionally was ONLY to do data harvesting and in that case, I'd patch the service that was using the dll to not use it at all.
      Patching a http/https call is no different than if you just blocked it with an entry in the hosts file.

    • @fuarkstyle
      @fuarkstyle 11 месяцев назад

      @@thewelder3538 yup that's reverse engineering at its best.

  • @rjjeffreys
    @rjjeffreys Год назад +1

    For decades, I have been a Microsoft MVP (Most Valued Professional), as well as a Lead Systems Engineer and SI (Systems Integrator). It disheartens me when I see so many alleged ‘tech’ channels here post erroneous information that actually causes Windows end-users to completely corrupt their OS, to the point where it will not even boot into Windows again for them. But, I have found every one of your videos to be clear, concise and correct. Well done, and keep up the great work, my friend!

    • @RadioactiveBlueberry
      @RadioactiveBlueberry Год назад +1

      Why would editing hosts file prevent booting an operating system? It's just a list of IP addresses for Internet domain names.

    • @ggiuliano93
      @ggiuliano93 Год назад +1

      Host file = pc bricked = OMEGALUL

    • @rjjeffreys
      @rjjeffreys Год назад

      @@RadioactiveBlueberry I was referring to bad Windows advice, in general, given by some alleged tech channels on YT. They frustrate me when they share some ‘tech tip’ they saw somewhere, and without researching/testing its validity and worth, just repeat it in their own videos here as an OK thing for end-users to implement/change in Windows’ settings.

    • @rjjeffreys
      @rjjeffreys Год назад

      @@ggiuliano93 You have way too much free time on your idle hands. Get a job/hobby.

    • @Sypaka
      @Sypaka Год назад +1

      @@rjjeffreys I have actually seen pretty dumb advices, which are still shared around on the net to this day. Like enabling the "hidden" Admin- Account, which is disabled for a reason.

  • @simplestuff3895
    @simplestuff3895 Год назад +3

    Great video. Do you have any advice on removing Cortana and disabling the creepy Viva Insights emails?

  • @Loady420
    @Loady420 Год назад

    Thanks!

    • @Loady420
      @Loady420 Год назад

      I'n not sure why this video hit my feed thank you!

  • @Anthony_Zakgaim
    @Anthony_Zakgaim Год назад +9

    For Zone Alarm users: the hosts file is locked by the Firewall. Navigate to the Firewall's advance settings and uncheck a lock checkbox. After saving the hosts file check the lock back

    • @AnIdiotOnline
      @AnIdiotOnline Год назад +4

      lol zone alarm, haven't heard of that software for about 20 years!

    • @Skank_and_Gutterboy
      @Skank_and_Gutterboy Год назад

      I was wondering why I couldn't get it to save. Thanks for the post!

    • @barryallen1100
      @barryallen1100 Год назад +1

      It's a virus itself. Everything is under the zone alarm network. Secure browser, can't delete that. Everything is managed by itself forcefully...
      Tried uninstalling it but not able to delete everything.

    • @Anthony_Zakgaim
      @Anthony_Zakgaim Год назад

      @@barryallen1100 The hosts file is protected by OS. A Browser cannot access it (and a computer's file system in this respect) by definition. But if a hacker can get administrative/elevated privileges on a machine than he can modify the hosts file. That is why Zone Alarm (the best Firewall and Antivirus on the market) locks it.

  • @adviththegreat5610
    @adviththegreat5610 Год назад

    The notepad tutorial part was really funny but honestly, with nostalgia of notepad tutorials and my most favourite cybersecurity channel, I won't complain if you shift to making notepad tutorials.

  • @tonyd4151
    @tonyd4151 Год назад +63

    It's a good idea but it won't block everything. The security hole(s) are in the network stack portion of the Kernel. Microsoft provides certain state actors access via private encryption keys. They've already admitted to such things back in the Windows 7 days. There's no way to have a completely private Windows operating system.

    • @ripleyhrgiger4669
      @ripleyhrgiger4669 Год назад +7

      They did not admit to anything like that and it's hogwash.

    • @tonyd4151
      @tonyd4151 Год назад

      ok bro, enjoy. :)@@ripleyhrgiger4669

    • @RolandAdams-h4m
      @RolandAdams-h4m Год назад +11

      @@ripleyhrgiger4669 So, when 3-letter agencies came to Microsoft, they were told to pound sand, right? I also have a very nice bridge to sell you.

    • @cmerton
      @cmerton Год назад

      This chucklehead's windows box is going to be owned less than 5 minutes after reaching the network!@@RolandAdams-h4m

    • @mesterjess
      @mesterjess Год назад +1

      @@RolandAdams-h4m I sincerely doubt the alphabets ever had to ask anyone at MS for that access - it's native. Their OS is called Windows for multiple reasons ;)

  • @NeptuneSega
    @NeptuneSega Год назад +7

    I wpuld suggest to use a firewall solution or give pihole/adguard home a try. Windows bypasses this and modifies the host back

  • @IDJENAwoqqqxdre
    @IDJENAwoqqqxdre Год назад

    Dude hell yes I’ve been watching weird network activity from these domains and then I see this video. Thanks a lot !

  • @RicardoPetrazzi
    @RicardoPetrazzi Год назад +3

    I'd be keen to see something similar for a Google Chrome browser on Windows...what can be 'blocked' without impacting functionality too much etc.

  • @TheGoodestBrandon
    @TheGoodestBrandon 6 месяцев назад

    Yep. Saving your channel. Great stuff, dude. Thanks for all the help!

  • @RonaldinhoPopper
    @RonaldinhoPopper Год назад +3

    Didn't work.
    Pasted addresses into hosts file, cleared browsing data and it still loaded a bunch of crap in a new tab for edge (not that I use edge).

  • @albeal9213
    @albeal9213 Год назад

    I Have been trying to figure this out.....and "Ya, You Got Me!" I was going through "everything" and it was this symple ROLF! My biggest problem was I was overthinking it not realizing that MS couldn't be that stupid but it wasn't them it was me all along! ROLF I wish I could compensate you but....man this was worth 100's of dollars! Thank YOU! I knew this, was a systems anylist that had to edit Individuals work computers "Hosts" file often. Wow! Banging my head on the wall right now. avb

  • @sebsoud
    @sebsoud Год назад +5

    well, I just tried and it doesn't work with Edge, even after clearing the cache 😣

    • @Da_MaSteR_TRADOOR
      @Da_MaSteR_TRADOOR 3 месяца назад

      I'm pretty sure MS checks all these channels and make all the adjustments to avoid we outsmart them.

  • @xXVibrantSnowXx
    @xXVibrantSnowXx Год назад +1

    I'm honestly fine with that Host file thing, i don't even know if i will have a further issues if i mess with the file, so i think i will rather just keep it as is
    Thanks for the video though

  • @DavidM2002
    @DavidM2002 Год назад +32

    If I add these URL's to the filter in my router, presumably that would accomplish the same thing. I'm able to set the filter to cover just a single machine, many machines, or the entire network. But, I'm always afraid that I will break something especially when it looks like filtering some of these URL's might be overly broad.

    • @NoClipMode
      @NoClipMode Год назад +10

      I wouldn't use a router, it can massively slow down your internet speed because it constantly has to check the filter whenever you visit a website and some routers are very slow at this. Just use the hosts file, it's simple, it works, and people have been doing this for decades.

    • @DavidM2002
      @DavidM2002 Год назад +1

      @@NoClipMode Good tip. Thank you.

    • @johnsmith1953x
      @johnsmith1953x Год назад +3

      @@NoClipModeWow. Are routers still that inefficient?!?

    • @jcdenton7914
      @jcdenton7914 Год назад +1

      The router will work as long as you don't run over a VPN

    • @RadioactiveBlueberry
      @RadioactiveBlueberry Год назад +3

      @@johnsmith1953x My exact thoughts, it's just a short lowercase string comparison. I'm sure such list needs to be very long to have any measurable slowdowns.

  • @mauriciolee7349
    @mauriciolee7349 5 месяцев назад

    Thank The PC Security Channel for this SIMPLE and YET effective solution.

  • @pnsdkrpndja12177
    @pnsdkrpndja12177 Год назад +9

    Can you give us a list for other browsers too?

    • @jonb3311
      @jonb3311 Год назад +2

      Hosts file works across all of Windows browsers

  • @stage6fan475
    @stage6fan475 Год назад

    Great! Keep them coming Leo. Much appreciated.

  • @kumariashamaki4151
    @kumariashamaki4151 Год назад +5

    What always bugged me about some notepad tutorials is when it was a dude who had a mic and you can hear him typing xD like bro you are making this so much harder on yourself xD

  • @warenmann1042
    @warenmann1042 Год назад

    I sometimes use edge in windows 10 "Sandbox". After changing file as suggested, I found it stills works after creating a sandbox and using edge. Thank You...

  • @Zigbii0
    @Zigbii0 Год назад +4

    Found your channel and really like your content. With this slight tweaks in the hosts file would this affect also the "news and interest" widget integrated in the windows taskbar?

  • @roy2689
    @roy2689 Год назад

    Done it on Windows 10 and it works... Thanks for the info👍

  • @RickJohnson
    @RickJohnson Год назад +3

    In Edge's new tab page, you can also switch the start page settings "Content" to "Content Off" and achieve most of this as well.

  • @HoshangGovil
    @HoshangGovil Год назад

    Hey, thank you very much...
    And I am going to spread this with all of my friends and PC users.
    ❤❤❤❤

  • @Master__of_Orion
    @Master__of_Orion Год назад +4

    Yeah, looks pretty good. Although a little bit of adblocking and tracker stopping is of course to do in every browser. And installing Pi Hole, but that's a different story.

  • @DazednConfused0
    @DazednConfused0 Год назад

    Great info. thanks. I never use edge is this browser specific?

  • @maxsens_7374
    @maxsens_7374 Год назад +4

    Thanks, this encouraged me to use linux even more

  • @effsixteenblock50
    @effsixteenblock50 Год назад +1

    Many folks are saying that this doesn't work.
    They're right because it CAN'T work.
    The Windows hosts file is a legacy bit of Windows. When a domain resolves to localhost, there is an attempt to fire off a request to port 80, would be fine back before everything moved to SSL/TLS on port 443.
    This WILL work on blackholing non-encrypted traffic (probably why the guy in the video said he managed to get a "clean" tab (?) - image files are often still sent over port 80).
    SO - the only way to make this work is to point the domains to an IP where there's something listening on port 443.
    NOTE: There are simpler ways of "listening" without actually deploying a real server.

  • @maxwellsmart3156
    @maxwellsmart3156 Год назад +10

    Lifetime plans are great until they change their TOS or go out of business. Also paying upfront is usually a big no-no. Worth a look at the least, though.

    • @pcsecuritychannel
      @pcsecuritychannel  Год назад

      They have monthly and annual plans too. I just mentioned the lifetime plan cause its the first time I've seen that as an option.

  • @kartik_exe_
    @kartik_exe_ Год назад

    that intro got me hard i first thought that this video is maybe years ago but the time you said i am kidding i was like "RICKROLLED"

  • @cy9nvs
    @cy9nvs Год назад +4

    Does it still allow my system to show me the current weather in the task bar, and to automatically adjust the time?
    Edit: No, this fix also disables your weather information. If you want that feature to stay enabled, remove the "assets msn" line.

  • @GabrielPradiipaka
    @GabrielPradiipaka Год назад +2

    We need someone updating the list of websites to block with the hosts file. Charge some money, please. We need to get rid of MS malware on our computers.

  • @notme9801
    @notme9801 Год назад +22

    What would be interesting to try is setting up a local server and tracking all of the requests which would have gone to those sites

    • @emberframe6994
      @emberframe6994 Год назад

      That would be very interesting.

    • @Sypaka
      @Sypaka Год назад

      XAMPP does the trick and if you enabled error logging... yeah its gets crowded there.

    • @macethorns1168
      @macethorns1168 Год назад

      Simple: get Wireshark and monitor network traffic. You'll *very* quickly realize just how fucking useless and stupid the "advice" in this video really is.

  • @Waysif
    @Waysif Год назад +1

    thank you for this vid but one quick problem here. Why open Edge?

  • @fattymcboomboom9254
    @fattymcboomboom9254 Год назад +3

    You should know some Microsofts own dlls has the ability to ignore the hosts file. You could also try peerblock to block.

  • @CrashTesterTed
    @CrashTesterTed Год назад +1

    Microsoft edge new tabs aren't blank, did clearing browser and host file like you suggested

  • @khalilsworld8266
    @khalilsworld8266 Год назад +3

    wouldn’t it be more effective if you block these IP addresses at the network? It would actually apply to all your devices and it can’t be modified by some Windows update

    • @SpaceCadet4Jesus
      @SpaceCadet4Jesus Год назад

      If you were to block all the IP addresses, your list would be huge. Microsoft and advertisement companies use a large revolving list of IP addresses that are difficult to find.
      A host file wasn't meant for this purpose. A host file is meant to translate names to local IP addresses within your network.
      You're much better off using Ublock Origin as an browser extension.

    • @escapetherace1943
      @escapetherace1943 Год назад

      @@SpaceCadet4Jesus a lot of these connections are happening through windows itself, even if you have no internet launched my man

    • @SpaceCadet4Jesus
      @SpaceCadet4Jesus Год назад

      @@escapetherace1943 Of course. I was speaking on the *prevent* ads front.

  • @Ozzy-R
    @Ozzy-R Год назад

    Hmm, did this but through my Asus Router's Firewall URL Filter. It worked like a charm, no messing with the Host file. Since I have multiple Windows machines in the network, figured this will be a blanket protection.

  • @yerunski
    @yerunski Год назад +3

    An alternative in case you didn't open Notepad as administrator, just save the file to your Desktop and copy it from there to C:\Windows\System32\drivers\etc. It will give an UAC prompt instead. Just confirm and it will copy it too. Also check and make sure Windows didn't secretly add '.txt' to the file in which case you have a different host file that doesn't work.

    • @Juliodax
      @Juliodax Год назад +1

      I do that before. Thank you

    • @macethorns1168
      @macethorns1168 Год назад

      Windows doesn't secretly add "txt" to the filename, Notepad automatically adds ".txt" to whatever filename you specify because it assumes you're writing a text file. Get around this by putting quotes around the exact filename you want: "hosts"

    • @yerunski
      @yerunski Год назад

      You are right. I wish the 'hide file extensions' options was turned off by default @@macethorns1168

  • @sodone466
    @sodone466 Год назад

    Very well done, thank you. You now have another subscriber.

  • @mukkah
    @mukkah Год назад +6

    Very helpful, quick and easy pro-tip for blocking some MS data scrapping network bandwidth.
    Lovely presentation, too bro

    • @G6JPG
      @G6JPG Год назад +1

      Not just MS.

    • @macethorns1168
      @macethorns1168 Год назад

      You misspelled unhelpful.

    • @mukkah
      @mukkah Год назад

      No I did not, because I didn't use said word. Clearly.@@macethorns1168

  • @DigitalCaveDweller
    @DigitalCaveDweller Год назад +3

    @pcsecuritychannel This video needs an update. The Hosts file solution provided no longer works.

    • @deepspeed7862
      @deepspeed7862 Год назад

      Yep, ms updated the hosts file and it has some extra lines now that are not shown in this video.
      Doesn't seem to work anymore ☹

  • @UnwantedCommentary
    @UnwantedCommentary Год назад

    Wow this is dope! Will this create an issue if I need to get windows updates for security patches?

  • @すべてに興味を失う
    @すべてに興味を失う Год назад +13

    To effectively prevent Windows from spying on us, transitioning to Linux is the optimal choice :D

    • @cldream
      @cldream Год назад +1

      Even on Linux I'd still suggest having the hosts file entries as a just-in-case.

  • @controli5123
    @controli5123 Год назад

    if you are doing this just because of edge new page, you can disable the notifications on the personalize tab and the rest on settings > Content.

  • @zedth2
    @zedth2 Год назад +5

    I tried this about a year ago on Windows 10 with quite a large hosts file. There's a threshold where Windows starts losing its mind and the DNS service just eats all the CPU. It's a pretty small bar to I think it's only like 15 or 25 entries.

    • @jonb3311
      @jonb3311 Год назад +7

      I have 50k in my hosts without any issues with Windows running

  • @SYLXM
    @SYLXM Год назад

    That intro was hilarious. You should have kept the note pad gag running for longer. xD

  • @Verklunkenzwiebel
    @Verklunkenzwiebel Год назад +7

    I think it would help if you would emphasize that if you have multiple PC's you have to modify the hosts file on every one of them.
    And this is why DNS came to be. Sysadmins had a day job modifying and updating all hosts under their control. DNS took care of that. However it is still baked into every operating system that the hosts file is consulted first before going to a DNS for name resolution

    • @xxXXuser69420XXxx
      @xxXXuser69420XXxx Год назад

      I would assume even the most illiterate people wouldn't assume this will fix a random device other than the pc in which it was performed

  • @qnprogrammer
    @qnprogrammer Год назад

    Thanks! I put these entries on my Mac too since I use Edge for MacOS once in a while.

  • @xaytana
    @xaytana Год назад +11

    Now if only there was a good way to permanently get rid of Edge. I can understand it being pre-installed, but Edge trying to force itself to be your main browser constantly, Edge constantly updating itself in the background (which it has the most bloated update process I've witnessed for any Chromium browser), etc., really reminds me of that other time Microsoft was sued for anticompetitive practices. I hate the damn thing, it's the worst distro of Chromium I've come across. I've also tried every method I can come across to get rid of it, but it keeps finding its way back, short of upgrading to Pro to get access to group policiy stuff, but is the GPedit method even viable considering nothing else has been?

    • @trueriver1950
      @trueriver1950 Год назад +5

      The way is to use Linux.
      If you give M$ the right to run your operating system they will always abuse that. Their track record goes back to the nineties and they're not going to change.

    • @BanriFerdinand
      @BanriFerdinand Год назад

      no es muy difícil te tomará 7 minutos

    • @-The-Golden-God-
      @-The-Golden-God- Год назад +9

      ​@@trueriver1950I'm yet to find anyone using Linux to run popular games and programs anywhere near comparable to running them on Windows.

    • @any_one_else
      @any_one_else Год назад +1

      @@-The-Golden-God- agree if it comes to programming or some type of professional work yes but for modern gaming or some popular softwares most of them will always work much better in windows than linux

    • @cmerton
      @cmerton Год назад

      that isn't germane to the topic here, which is: "Now if only there was a good way to permanently get rid of Edge."@@any_one_else

  • @regwatson2017
    @regwatson2017 Год назад +1

    This is great. Many thanks for this !