ZerOx16x Posted November 10, 2018 Share Posted November 10, 2018 4 minutes ago, IronY-Man said: BlockAdguard.bat - Source here: Reveal hidden contents :::::::::::::::::::::::::::::::::::::::::::: :: Elevate.cmd - Version 4 :: Automatically check & get admin rights :::::::::::::::::::::::::::::::::::::::::::: @echo off CLS ECHO. ECHO ============================= ECHO Running Admin shell ECHO ============================= :init setlocal DisableDelayedExpansion set cmdInvoke=1 set winSysFolder=System32 set "batchPath=%~0" for %%k in (%0) do set batchName=%%~nk set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs" setlocal EnableDelayedExpansion :checkPrivileges NET FILE 1>NUL 2>NUL if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges ) :getPrivileges if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges) ECHO. ECHO ************************************** ECHO Invoking UAC for Privilege Escalation ECHO ************************************** ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%" ECHO args = "ELEV " >> "%vbsGetPrivileges%" ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%" ECHO args = args ^& strArg ^& " " >> "%vbsGetPrivileges%" ECHO Next >> "%vbsGetPrivileges%" if '%cmdInvoke%'=='1' goto InvokeCmd ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%" goto ExecElevation :InvokeCmd ECHO args = "/c """ + "!batchPath!" + """ " + args >> "%vbsGetPrivileges%" ECHO UAC.ShellExecute "%SystemRoot%\%winSysFolder%\cmd.exe", args, "", "runas", 1 >> "%vbsGetPrivileges%" :ExecElevation "%SystemRoot%\%winSysFolder%\WScript.exe" "%vbsGetPrivileges%" %* exit /B :gotPrivileges setlocal & cd /d %~dp0 if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul & shift /1) :::::::::::::::::::::::::::: ::START :::::::::::::::::::::::::::: TASKKILL /F /IM Adguard.exe Net stop "Adguard Service" SET NEWLINE=^& echo. FIND /C /I "api.adguard.com" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 api.adguard.com>>%WINDIR%\system32\drivers\etc\hosts Netsh.exe advfirewall firewall delete rule name="Adguard.exe" Netsh.exe advfirewall firewall delete rule name="AdguardSvc.exe" :CheckOS IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT) :64BIT Netsh.exe advfirewall firewall add rule name="Adguard.exe" program="%ProgramFiles(x86)%\Adguard\Adguard.exe" protocol=any dir=out enable=yes action=block remoteip=194.177.22.245 profile=private,public,domain Netsh.exe advfirewall firewall add rule name="AdguardSvc.exe" program="%ProgramFiles(x86)%\Adguard\AdguardSvc.exe" protocol=any dir=out enable=yes action=block remoteip=194.177.22.245 profile=private,public,domain GOTO END :32BIT Netsh.exe advfirewall firewall add rule name="Adguard.exe" program="%ProgramFiles%\Adguard\Adguard.exe" protocol=any dir=out enable=yes action=block remoteip=194.177.22.245 profile=private,public,domain Netsh.exe advfirewall firewall add rule name="AdguardSvc.exe" program="%ProgramFiles%\Adguard\AdguardSvc.exe" protocol=any dir=out enable=yes action=block remoteip=194.177.22.245 profile=private,public,domain GOTO END :END So add lines: SET NEWLINE=^& echo. FIND /C /I "api.adguard.com" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 api-b.adguard.com>>%WINDIR%\system32\drivers\etc\hosts Link to comment Share on other sites More sharing options...
IronY-Man Posted November 10, 2018 Share Posted November 10, 2018 3 minutes ago, ZerOx16x said: So add lines: SET NEWLINE=^& echo. FIND /C /I "api.adguard.com" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 api-b.adguard.com>>%WINDIR%\system32\drivers\etc\hosts just below the previous echo line or replace with it ? Link to comment Share on other sites More sharing options...
ZerOx16x Posted November 10, 2018 Share Posted November 10, 2018 14 minutes ago, IronY-Man said: just below the previous echo line or replace with it ? ADD, Example: SET NEWLINE=^& echo. FIND /C /I "api.adguard.com" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 api.adguard.com>>%WINDIR%\system32\drivers\etc\hosts SET NEWLINE=^& echo. FIND /C /I "api-b.adguard.com" %WINDIR%\system32\drivers\etc\hosts IF %ERRORLEVEL% NEQ 0 ECHO %NEWLINE%^127.0.0.1 api-b.adguard.com>>%WINDIR%\system32\drivers\etc\hosts Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 10, 2018 Share Posted November 10, 2018 plus u do understand u can do as this bat do on your own 1 it look like to use windows firewall and just add to your own host the things u want blocked real with host is no need for firewall or block exes i no like the .bat as for 1 if u want to remove what was added to windows fire when i test things plus i use my own firewall but as u can see it just use windows firewall and host block its ok but i like to do on my own with firewalls not let a bat make the rules in firewalls its not bad but i have own ways but i think u have got the info now from the above comments ? ZerOx16x but if u still have problems i try and help when i have free time Link to comment Share on other sites More sharing options...
IronY-Man Posted November 10, 2018 Share Posted November 10, 2018 10 minutes ago, knowledge said: plus u do understand u can do as this bat do on your own 1 it look like to use windows firewall and just add to your own host the things u want blocked real with host is no need for firewall or block exes i no like the .bat as for 1 if u want to remove what was added to windows fire when i test things plus i use my own firewall but as u can see it just use windows firewall and host block its ok but i like to do on my own with firewalls not let a bat make the rules in firewalls its not bad but i have own ways but i think u have got the info now from the above comments ? ZerOx16x but if u still have problems i try and help when i have free time I know the firewalling method that you're showing but asked about bat file cos it is lika shortcut thats why I asked !! The very first time I patched adguard ; I did that via the usual firewall method than host block and then patch ! Link to comment Share on other sites More sharing options...
dcs18 Posted November 11, 2018 Share Posted November 11, 2018 2 new IPs published (for the sake of those who do not have programs which can block Hostnames) — AdGuard can now be prevented from phoning home by blocking only IPs. Link to comment Share on other sites More sharing options...
dcs18 Posted November 12, 2018 Share Posted November 12, 2018 AdGuard blocking rules revised. Link to comment Share on other sites More sharing options...
Raur Posted November 13, 2018 Share Posted November 13, 2018 Hi! Can anyone share the adguard android apk file download link other than from the main website. Having trouble downloading without resume support. Using a data capped internet. Thanks in advance Link to comment Share on other sites More sharing options...
man.with.a.plan Posted November 13, 2018 Share Posted November 13, 2018 1 hour ago, Raur said: Hi! Can anyone share the adguard android apk file download link other than from the main website. Having trouble downloading without resume support. Using a data capped internet. Thanks in advance Spoiler https://www.file-upload.com/ld8r9kcqhmds It's the one by Balatan. Link to comment Share on other sites More sharing options...
Suresh PK Posted November 14, 2018 Share Posted November 14, 2018 On 11/10/2018 at 4:46 AM, IronY-Man said: Here: Still facing this problem?. I think you missed to enable the certificate in firefox extension. Check the web how to add adguard certificate into firefox Best Regards PS: Never block it through firewall program. because it need filter update to block the latest advertisement websites. I hope if some one facing "Secure connection problem" can find fix site: https://kb.adguard.com Code: /en/windows/solving-problems/connection-not-trusted Link to comment Share on other sites More sharing options...
dcs18 Posted November 14, 2018 Share Posted November 14, 2018 12 minutes ago, suresh.hacker said: PS: Never block it through firewall program. because it need filter update to block the latest advertisement websites. Wow — you just saved my life. Link to comment Share on other sites More sharing options...
nickhog Posted November 16, 2018 Share Posted November 16, 2018 Does this work with Microsoft Edge? Link to comment Share on other sites More sharing options...
dcs18 Posted November 16, 2018 Share Posted November 16, 2018 28 minutes ago, nickhog said: Does this work with Microsoft Edge? https://adguard.com/en/article/adblock-adguard-edge.html Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 16, 2018 Share Posted November 16, 2018 its not useless in the right hands Link to comment Share on other sites More sharing options...
nickhog Posted November 17, 2018 Share Posted November 17, 2018 @dcs18 - Please bear with me and let me try to explain my question. If I understand all that I've read, there is an Adguard Adblock extension for Microst Edge as described in the top half of the link you provided. The bottom half of that discussion is about Adguard for Windows. I think what the article says is, that both will work with the Edge Browser. While the Adblock Edge extension only covers the Edge browser, the Adguard for Windows (the product posted here) covers any browser you are using on your system (i.e. Edge, IE Exsplorer, FireFox, Chrome, etc.). What I have found is, the Adblock extension does indeed work with Edge. The package here, when I install it, covers every browser on my system Except, Edge. In the link you provided, at the very bottom, is a link to download the latest version of Adguard for Windows. The version that you get from that link, is the same revision (v6.4.1814.4903) but I think it is a trial copy. When I install it, it works on all browsers on my system including Edge. I haven't changed any setting in either installation. They are set with what ever the installation uses. This is what prompted my question. @knowledge - If your comment is directed at my post, I'm sorry but I don't understand your comment. Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 17, 2018 Share Posted November 17, 2018 5 minutes ago, nickhog said: @dcs18 - Please bear with me and let me try to explain my question. If I understand all that I've read, there is an Adguard Adblock extension for Microst Edge as described in the top half of the link you provided. The bottom half of that discussion is about Adguard for Windows. I think what the article says is, that both will work with the Edge Browser. While the Adblock Edge extension only covers the Edge browser, the Adguard for Windows (the product posted here) covers any browser you are using on your system (i.e. Edge, IE Exsplorer, FireFox, Chrome, etc.). What I have found is, the Adblock extension does indeed work with Edge. The package here, when I install it, covers every browser on my system Except, Edge. In the link you provided, at the very bottom, is a link to download the latest version of Adguard for Windows. The version that you get from that link, is the same revision (v6.4.1814.4903) but I think it is a trial copy. When I install it, it works on all browsers on my system including Edge. I haven't changed any setting in either installation. They are set with what ever the installation uses. This is what prompted my question. @knowledge - If your comment is directed at my post, I'm sorry but I don't understand your comment. my comment was for dcs18 as he we make little joke about adguard but if u have some problems with adguard we can help most us use adguard or i do so its no problems if u ask much things to help understand the program more i not use Edge but i can test if like or need no problems Link to comment Share on other sites More sharing options...
nickhog Posted November 17, 2018 Share Posted November 17, 2018 knowledge - Thanks for your time. I to do not use M$ Edge for my personal setup, however, many of my friends and family do. Since I try to help them. I sometimes get in a position to make sure what I recommend actually works on that platform. To try to simplify my situation, I would prefer to use the Premium package released here but, on all my test platforms, it does not block adds nor does it seem to function at all with regard to M$ Edge browser. Also, the shield icon in the lower right of other browsers in my system is not present in M$ Edge browser. So I was wondering if there is something I'm missing in this release or is there a problem with the release? A specific example is when viewing videos on MSN.Com, there are always advertisements that run before the selected video actually plays. With Adguard downloaded form here installed, those ads run, with Adguard downloaded from Adguard Web site, they are blocked. So yes, if you could please try it on your system, I would be grateful. Link to comment Share on other sites More sharing options...
dcs18 Posted November 17, 2018 Share Posted November 17, 2018 6 hours ago, nickhog said: What I have found is, the Adblock extension does indeed work with Edge. 6 hours ago, nickhog said: When I install it, it works on all browsers on my system including Edge. Good — glad to know that everything works, for you. Personally, I don't use Edge, it's a very fussy browser and does not handshake well with most ad-blockers (as it does with AdGuard) — nevertheless, find that some advertisements and other junk do not get blocked by AdGuard (on Edge) at the same settings, as well as they do on the rest of the browsers. Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 17, 2018 Share Posted November 17, 2018 wait ill look at it now Link to comment Share on other sites More sharing options...
sam3971 Posted November 17, 2018 Share Posted November 17, 2018 On 11/9/2018 at 3:16 PM, IronY-Man said: Here: You will have to install the certificate from within adguard, this is a very common thing that happens, reinstall of the cert will fix it. You can find this option in the settings of adguard, make sure you close FF first, then apply the cert, then you should be good. Link to comment Share on other sites More sharing options...
IronY-Man Posted November 17, 2018 Share Posted November 17, 2018 1 hour ago, sam3971 said: You will have to install the certificate from within adguard, this is a very common thing that happens, reinstall of the cert will fix it. You can find this option in the settings of adguard, make sure you close FF first, then apply the cert, then you should be good. Solved Already but thanks anyway ! Link to comment Share on other sites More sharing options...
TheBig Posted November 17, 2018 Share Posted November 17, 2018 @IronY-Man so the problem wasnt the edited Adguard.Global.dll Link to comment Share on other sites More sharing options...
IronY-Man Posted November 18, 2018 Share Posted November 18, 2018 3 minutes ago, TheBig said: @IronY-Man so the problem wasnt the edited Adguard.Global.dll Cant say for sure , cos Whenever I've reinstalled Adguard (also after using edited dll), Ive reinstalled certificate because of Fox's drama but that time it specifically mentioned "BAD Signature error" which it didnt before...!! While it worked in Cent W/o any problems but not in Fox ; however after reinstalling adguard+host block and then certificate again didnt caused such error !! Link to comment Share on other sites More sharing options...
dcs18 Posted November 18, 2018 Share Posted November 18, 2018 Just a heads-up . . . . . . . AdGuard no longer requires the SSL certificate to be reinstalled — this was fixed in a recent build. Link to comment Share on other sites More sharing options...
knowledge-Spammer Posted November 24, 2018 Share Posted November 24, 2018 https://adguard.com/en/promo/18-black-friday.html?utm_source=email&utm_medium=promo&utm_campaign=bf18 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.