barbuncela Публикувано преди 11 часа Report Share Публикувано преди 11 часа Здравейте! Става дума за блокиране на рекламите във вайбера за компютър. Намерих този бат файл. @echo off attrib -r %SystemRoot%\system32\drivers\etc\hosts echo Patch hosts SET VIB_IP="" FOR /f "usebackq tokens=1-2" %%i IN (`FINDSTR /I "viber.com" %SystemRoot%\system32\drivers\etc\hosts`) DO SET VIB_IP="%%i %%j" IF %VIB_IP%=="" >> %SystemRoot%\system32\drivers\etc\hosts echo 127.0.0.1 ads.viber.com media.cdn.viber.com ads.aws.viber.com ads-d.viber.com s-bid.rmp.rakuten.com attrib +r %SystemRoot%\system32\drivers\etc\hosts ipconfig /flushdns А след задействането му резултата в хост файла е това: # Copyright (c) 1993-2009 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a '#' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host # localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 ads.viber.com media.cdn.viber.com ads.aws.viber.com ads-d.viber.com s-bid.rmp.rakuten.com Ехоо! @ExaFlop Твоя работа е. Или пак са се изместили гадовете! Защото не работи! А и това 127.0.0.1 ads.viber.com media.cdn.viber.com ads.aws.viber.com ads-d.viber.com s-bid.rmp.rakuten.com Не трябва ли да е така: 127.0.0.1 ads.viber.com 127.0.0.1 media.cdn.viber.com 127.0.0.1 ads.aws.viber.com и т.н. Благодаря! п.п. Още една изненада. Като пиша нещо другия не го получава! Махнах го и се оправи..... Цитирай Link to comment Сподели другаде More sharing options...
Препоръчан пост
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.