AdguardTeam / AdguardFilters

AdGuard Content Blocking Filters
https://adguard.com/
GNU General Public License v3.0
3.17k stars 631 forks source link

egybest #94948

Closed adguard-bot closed 1 year ago

adguard-bot commented 3 years ago

Issue URL (Anti Adblock Script)

https://neel.egybest.loan/movie/old-2021/?ref=home-trends

Comment

Username: @BALTAGY

Screenshots

Screenshot 1 ![Screenshot 1](https://reports-img.adguard.com/rhQwRtk.jpg)

System configuration

Information value
AdGuard product: AdGuard for Windows v7.6.1
Browser: Firefox
AdGuard driver: WFP
Stealth mode: disabled
DNS filtering: disabled
Filters: Ad Blocking:
AdGuard Base,
AdGuard Mobile Ads,
EasyList,
Peter Lowe's Blocklist

Privacy:
AdGuard Tracking Protection,
EasyPrivacy,
Fanboy's Enhanced Tracking List

Social Widgets:
AdGuard Social Media

Annoyances:
Adblock Warning Removal List,
AdGuard Annoyances

Security:
Online Malicious URL Blocklist,
Spam404,
NoCoin Filter List

Language-specific:
AdGuard Russian,
Liste AR
Userscripts: https://userscripts.adtidy.org/release/popup-blocker/2.5/popupblocker.user.js,
https://userscripts.adtidy.org/release/assistant/4.3/assistant.user.js,
https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.user.js,
https://userscripts.adtidy.org/release/adguard-wot/1.0/wot.user.js
Other extensions used: ESET Internet Security
BALTAGY commented 3 years ago

@BALTAGY

adguard-bot commented 3 years ago

Issue URL (Incorrect Blocking)

https://neel.egybest.loan/movie/old-2021/?ref=home-trends

Comment

Username: @BALTAGY

If you press the download botton ( تحميل ) it will keep redirect you to the same page not the download page

Screenshots

Screenshot 1 ![Screenshot 1](https://reports-img.adguard.com/mZ8aD9g.jpg)
Screenshot 2 ![Screenshot 2](https://reports-img.adguard.com/mZ8aD9g.jpg)

System configuration

Information value
AdGuard product: AdGuard for Windows v7.6.1
Browser: Firefox
AdGuard driver: WFP
Stealth mode: disabled
DNS filtering: disabled
Filters: Ad Blocking:
AdGuard Base,
AdGuard Mobile Ads,
EasyList,
Peter Lowe's Blocklist

Privacy:
AdGuard Tracking Protection,
EasyPrivacy,
Fanboy's Enhanced Tracking List

Social Widgets:
AdGuard Social Media

Annoyances:
Adblock Warning Removal List,
AdGuard Annoyances

Security:
Online Malicious URL Blocklist,
Spam404,
NoCoin Filter List

Language-specific:
AdGuard Russian,
Liste AR
Userscripts: https://userscripts.adtidy.org/release/popup-blocker/2.5/popupblocker.user.js,
https://userscripts.adtidy.org/release/assistant/4.3/assistant.user.js,
https://userscripts.adtidy.org/release/adguard-extra/1.0/adguard-extra.user.js,
https://userscripts.adtidy.org/release/adguard-wot/1.0/wot.user.js
Other extensions used: ESET Internet Security
BALTAGY commented 3 years ago

@AdamWr Any chance it will be fixed soon ?

AdamWr commented 3 years ago

It's partially fixed already - video player works fine, but the problem is with download buttons. It will be fixed probably in AdGuard Extra, but I do not know when.

minanagehsalalma commented 3 years ago

It's partially fixed already - video player works fine, but the problem is with download buttons. It will be fixed probably in AdGuard Extra, but I do not know when.

hey , but what is "AdGuard Extra" ?

AdamWr commented 3 years ago

https://github.com/AdguardTeam/AdGuardExtra#readme

minanagehsalalma commented 2 years ago

@AdamWr any updates ?

AdamWr commented 2 years ago

I don't have any new informations regarding this issue.

minanagehsalalma commented 2 years ago

I don't have any new informations regarding this issue.

@AdamWr great , anyway i think you forgot to close this one too it's the same problem so https://github.com/AdguardTeam/AdguardFilters/issues/100255

Mortal792 commented 2 years ago

1: Disable Adguard on this site. 2: Go to any movie/show that you want to watch, and click on the watch/download button (without having adguard enabled) 3: Download EditThisCookie (https://chrome.google.com/webstore/detail/editthiscookie/fngmhnnpilhplaeedifhccceomclgfbg) 4: when the video player successfully opens and the movie is ready to be watched, open EditThisCookie and unmark the "Session" on all of the cookies, and set the expiration date to 2026. 5: enable Adguard once again when you are done, and voila, no more anti-adblockers (Adguard will do the rest)

EDIT: You can also make the cookie as read-only when you are finished by pressing on the lock symbol. (You can also Export the cookies and import them if they were changed / or just re-do the steps) image

Mortal792 commented 2 years ago

@BALTAGY @AdamWr @minanagehsalalma

minanagehsalalma commented 2 years ago

@Mortal792 Doesn't work and a silly solution to suggest as egy best is a wildcard domain name site

the fix i suggested before is pause ad blocker and let an pop up opens then re enable the ad blocker

The pssid is unchangeable + just refresh the page and domain is changed with diff cookies as usual with egybest trying to evade getting blocked by gov or something So SURE ENOUGHT IT WON'T WORK FOREVER OR ANYTHING

https://user-images.githubusercontent.com/20546638/144438313-07e58a52-675a-4408-bdcf-fe8777d377ca.mp4

Image after a refresh image

funniest shit ever that you thought that would work on a site with such complex anti-blocking mechanism

Mortal792 commented 2 years ago

It does work. I have tested it multiple times. You didnt even uncheck the session button and set it to another year. So the cookie expired

Mortal792 commented 2 years ago

@minanagehsalalma so yeah. Its simple. Get the video player working without using any adblock. Then just uncheck the session button and change the date to 2026

Mortal792 commented 2 years ago

Pssid is changeable. It didnt change because you made it read only. Lol

"Funniest shit ever that you thought that would work on a site with such complex anti-blocking mechanism" believe it or not I have actually been using this "silly" method for months "just refresh the page and domain is changed with diff cookies as usual" Thats because the pssid is set to expire after the session. This is why you HAVE to change the expiration date to 2026 or any other year

Mortal792 commented 2 years ago

It should work on all of the egybest domains. Just stick to the same one when you have done it tho

minanagehsalalma commented 2 years ago

@Mortal792

okay i removed the extension and reinstalled it and it now works.

Just stick to the same one when you have done it tho

That's not up to me !!!

It's up to the darn site

Mortal792 commented 2 years ago

Use akon.egybest.fail, been using it for a while

minanagehsalalma commented 2 years ago

@Mortal792 if you could write an adguard script for it , it may be useful

grab the value from wherever it's, then set the value to read only.

just like a simple POC

minanagehsalalma commented 2 years ago

Use akon.egybest.fail, been using it for a while

so the top-level domain doesn't expire ?

i mostly type egy.best and chrome completes the site url for me so I don't have to write it manually or memorize something every time i try visiting it

Mortal792 commented 2 years ago

Use akon.egybest.fail, been using it for a while

so the top-level domain doesn't expire ?

i mostly type egy.best and chrome completes the site url for me so I don't have to write it manually or memorize something every time i try visiting it

egy.best would just send you to random domains, yeah, just bookmark akon.egybest.fail

minanagehsalalma commented 2 years ago

grab the value from wherever it's, then set the value to read only.

@AdamWr could the @Mortal792 suggestion be implemented ?

minanagehsalalma commented 2 years ago

egy.best would just send you to random domains, yeah, just bookmark akon.egybest.fail

okay , but how you got to figure out this ?

Mortal792 commented 2 years ago

egy.best would just send you to random domains, yeah, just bookmark akon.egybest.fail

okay , but how you got to figure out this ?

I've been using the akon sub-domain for a while now, it never changed

Mortal792 commented 2 years ago

@minanagehsalalma I've been using this method for ages, let's hope that adguard finds another way around it (Btw you will have to do these steps everyday, the PSSID Auth will stop within a day, but yeah it shouldn't be an issue since its so simple to re-do)

minanagehsalalma commented 2 years ago

(Btw you will have to do these steps everyday, the PSSID Auth will stop within a day, but yeah it shouldn't be an issue since its so simple to re-do)

da heck ???

Then why shall i even bother with the other steps (date change and other ***)

why did you lie and say forever ?!

then this is useless just like i said !! the fix i suggested before is pause ad blocker and let an pop up opens then re enable the ad blocker how is that any diff then this ? and my suggestion is even simpler and easier by a TON !!!!

Mortal792 commented 2 years ago

(Btw you will have to do these steps everyday, the PSSID Auth will stop within a day, but yeah it shouldn't be an issue since its so simple to re-do)

da heck ???

Then why shall i even bother with the other steps (date change and other ***)

why did you lie and say forever ?!

then this is useless just like i said !! the fix i suggested before is pause ad blocker and let an pop up opens then re enable the ad blocker how is that any diff then this ? and my suggestion is even simpler and easier by a TON !!!!

lmao, because you can re-do the steps literally within a minute?

minanagehsalalma commented 2 years ago

Then keep using your old method, no one is forcing you to do mine, I was just throwing it there in case someone wants to use it lol

your method is just pointless as F

pause the adblocker let a pop up happen and then reenable the adblocker just like that volia

saved you two other effin steps !!

Mortal792 commented 2 years ago

Goodluck doing that when you are watching a long series, you'll have to do it on every episode lol, but mine lasts for a whole day 👀

minanagehsalalma commented 2 years ago

Goodluck doing that when you are watching a long series, you'll have to do it on every episode lol, but mine lasts for a whole day 👀

this lasts for a whole day too haha

Mortal792 commented 2 years ago

Goodluck doing that when you are watching a long series, you'll have to do it on every episode lol, but mine lasts for a whole day 👀

this lasts for a whole day too haha

Buddy, You do you.

minanagehsalalma commented 2 years ago

@Mortal792 only PSSID is needed to be set to just 2100

which can be done using the chrome dev tools in just one click no extensions no anything

you don't need to tamper with other cookies too

Buddy, You do you.

K

Mortal792 commented 2 years ago

@Mortal792 only PSSID is needed to be set to just 2100

which can be done using the chrome dev tools in just one click no extensions no anything

you don't need to tamper with other cookies too

Buddy, You do you.

K

Yeah, this might do it too

AdamWr commented 2 years ago

AdamWr could the Mortal792 suggestion be implemented ?

If it requires to allow popups, then I think that it's not solution for us.

But if we are talking about workarounds then you can try to use these rules (all rules are required):

/api?call=$xmlhttprequest,domain=egy.best|egybest.*,badfilter
kame.egybest.kim,egy.best,egybest.*,vidstream.*#@%#(function(){if("function"==typeof Proxy){var c=/^\/(?!api\?call=)/;window.open=new Proxy(window.open,{apply:function(e,k,g){var f=g[0];if(!0!==c.test(f))return e.apply(k,g);e=location.origin;var a=document.createElement("object");location.href.includes("/watch/")||location.href.includes("/vs-mirror/")?a.data=f:a.data=e+"/"+f;a.style.setProperty("height","1px","important");a.style.setProperty("width","1px","important");a.style.setProperty("position","absolute","important");a.style.setProperty("top","-99999px","important");document.body.appendChild(a);setTimeout(function(){return a.remove()},1E4);return a.contentWindow?new Proxy(a.contentWindow,{get:function(d,b){return"opener"===b?window:"frameElement"===b?null:d[b]},set:function(d,b,h){d[b]=h}}):new Proxy(a,{get:function(d,b){return"opener"===b?window:"frameElement"===b?null:!1},set:function(d,b,h){d[b]=!1}})}})}})();
kame.egybest.kim,egy.best,egybest.*,vidstream.*#@%#AG_onLoad(function(){setTimeout(function(){var a=document.documentElement;a&&a.click();(a=document.querySelector(".vjs-tech:not([src])"))&&a.click();(a=document.querySelector("p > a.bigbutton._reload"))&&a.click();(a=document.querySelector("body > div.vidplay._reload"))&&a.click()},500)});
kame.egybest.kim,egy.best,egybest.*,vidstream.*#%#//scriptlet("abort-current-inline-script", "decodeURIComponent", "reverse")
kame.egybest.kim,egy.best,egybest.*,vidstream.*#%#(function(){if("function"==typeof Proxy){var d=/^\/(?!api\?call=)/,g=window.open;window.open=new Proxy(window.open,{apply:function(l,m,h){var e=h[0];if(!0!==d.test(e))return l.apply(m,h);var c=document.createElement("object");if(location.href.includes("/watch/")||location.href.includes("/vs-mirror/"))return c.data=e,c.style.setProperty("height","1px","important"),c.style.setProperty("width","1px","important"),c.style.setProperty("position","absolute","important"),c.style.setProperty("top", "-99999px","important"),document.body.appendChild(c),setTimeout(function(){return c.remove()},1E4),c.contentWindow?new Proxy(c.contentWindow,{get:function(b,a){return"opener"===a?window:"frameElement"===a?null:b[a]},set:function(b,a,f){b[a]=f}}):new Proxy(c,{get:function(b,a){return"opener"===a?window:"frameElement"===a?null:!1},set:function(b,a,f){b[a]=!1}});var k=g(e,"_blank","height=100,width=200,top="+(screen.height-100)+",left="+(screen.width-200));setTimeout(function(){try{k.close()}catch(b){}}, 5E3);return new Proxy(k,{get:function(b,a){return"opener"===a?window:"frameElement"===a?null:b[a]},set:function(b,a,f){b[a]=f}})}})}})();
kame.egybest.kim,egy.best,egybest.*,vidstream.*#%#AG_onLoad(function(){if(0===document.body.childElementCount){var a="<script> "+document.querySelector("head > script").innerText+" \x3c/script>",b=document.createElement("iframe");document.body.appendChild(b);var c=document.createRange();c.selectNode(document.body);a=c.createContextualFragment(a);b.contentWindow.document.body.appendChild(a);b.remove()}});

These rules should cause that a blank popup will be opened in a new small window and after few seconds it should be automatically closed and then download button should works (you probably have to wait as this popup will be closed, otherwise download button still may not works). By the way, in Firefox an Enhanced Tracking Protection probably must be disabled and to be honest, I'm not sure if it works correctly and every time.

minanagehsalalma commented 2 years ago

If it requires to allow popups, then I think that it's not solution for us.

@AdamWr hmm but how else are you going to get the value when the backend is based upon it , the other alterative is to grab it using a background request

kame.egybest.kim

why you are including that subdomain so it's not the same for me?

By the way, in Firefox an Enhanced Tracking Protection probably must be disabled and to be honest, I'm not sure if it works correctly and every time.

tested it , it sometimes works and sometimes doesn't and also on chrome it misses up

image

minanagehsalalma commented 2 years ago

@AdamWr if i allow pop ups it works but it shows up every time i refresh the tab

so ... if there a way to change the cookie expire to never using some Rules ?

minanagehsalalma commented 2 years ago

@minanagehsalalma I figured it out, it was the Self-destruction of third-party cookies from Adguard's stealth mode deleting the cookie after 48 hours.

@Mortal792 why did you remove this?

Also it's obviously wrong 48h isn't a day

Mortal792 commented 2 years ago

@minanagehsalalma I figured it out, it was the Self-destruction of third-party cookies from Adguard's stealth mode deleting the cookie after 48 hours.

@Mortal792 why did you remove this?

Also it's obviously wrong 48h isn't a day

@minanagehsalalma Yeah I noticed that i was wrong, that's why I removed it, but what I actually found is that PSSID gets cleared once your IP changes (Even if you had 2100 expiration date)

Mortal792 commented 2 years ago

Trying to find a way around it if it's possible

minanagehsalalma commented 2 years ago

but what I actually found is that PSSID gets cleared once your IP changes (Even if you had 2100 expiration date)

@Mortal792 how so? That's pretty weird, are you sure?

Trying to find a way around it if it's possible

We already do

The scripts adam sent

And we are just missing a way to make the cookie expire next day not per session

Just like that and if only one pop up per day then it's not a problem

Mortal792 commented 2 years ago

but what I actually found is that PSSID gets cleared once your IP changes (Even if you had 2100 expiration date)

@Mortal792 how so? That's pretty weird, are you sure?

I'm 100% certain, tested it with VPNs, whenever you change your IP it automatically clears the cookie and you can't set the old value back, it will keep changing to the new one

Mortal792 commented 2 years ago

The scripts adam sent

the script doesn't always work for me, I still get the adblock msg

minanagehsalalma commented 2 years ago

clears the cookie and you can't set the old value back, it will keep changing to the new one

Lol what about the read only thing?

the script doesn't always work for me, I still get the adblock msg

It works great for me

Mortal792 commented 2 years ago

Lol what about the read only thing?

The extension shows that the value is still the same while chrome says otherwise, so it's kinda buggy

minanagehsalalma commented 2 years ago

Lol what about the read only thing?

The extension shows that the value is still the same while chrome says otherwise, so it's kinda buggy

Lol

EslamGamalEssa commented 2 years ago

@minanagehsalalma only PSSID is needed to be set to just 2100

which can be done using the chrome dev tools in just one click no extensions no anything

you don't need to tamper with other cookies too

Buddy, You do you.

K

so how to do that my friend ?

Mortal792 commented 2 years ago

@minanagehsalalma's first suggestion is better, just disable the adblock and enable it when the movie is ready

minanagehsalalma commented 2 years ago

@EslamGamalEssa just do https://github.com/AdguardTeam/AdguardFilters/issues/94948#issuecomment-984807417 works great for me

@Mortal792 the rules suggested above does quite the same but automatically so it's way way better for someone who likes browsing every while like me

EslamGamalEssa commented 2 years ago

@minanagehsalalma @Mortal792 @AdamWr thanks for your advice my friends.

minanagehsalalma commented 2 years ago

@Alex-302 @AdamWr @zloyden is it going to get fixed ? 😥

it been referenced at least a hundred time till now : (

Are we expecting a fix or .... ? I tried to trouble shot the problem since the filtering log got updated but i had no luck at all

Even blocking the very obvious adblock.js file ... breaks it even more and the file is highly obfuscated that after using JavaScript Deobfuscator on it ... still doesn't make sense image

The code

(function(window){var _AdBlock=function(options){this._options={checkOnLoad:false,resetOnEnd:false,loopCheckTime:50,loopMaxNumber:5,baitClass:'pub_300x250 pub_300x250m pub_728x90 text-ad textAd text_ad text_ads text-ads text-ad-links',baitStyle:'width: 1px !important; height: 1px !important; position: absolute !important; left: -10000px !important; top: -1000px !important;',debug:false};this._var={version:'3.2.1',bait:null,checking:false,loop:null,loopNumber:0,event:{detected:[],notDetected:[]}};if(options!==undefined){this.setOption(options);}var self=this;var eventCallback=function(){setTimeout(function(){if(self._options.checkOnLoad===true){if(self._var.bait===null){self._creatBait();}setTimeout(function(){self.check();},1);}},1);};if(window.addEventListener!==undefined){window.addEventListener('load',eventCallback,false);}else{window.attachEvent('onload',eventCallback);}};_AdBlock.prototype._options=null;_AdBlock.prototype._var=null;_AdBlock.prototype._bait=null;_AdBlock.prototype._log=function(method,message){console.log('[_AdBlock]['+method+'] '+message);};_AdBlock.prototype.setOption=function(options,value){if(value!==undefined){var key=options;options={};options[key]=value;}for(var option in options){this._options[option]=options[option];}return this;};_AdBlock.prototype._creatBait=function(){var bait=document.createElement('div');bait.setAttribute('class',this._options.baitClass);bait.setAttribute('style',this._options.baitStyle);this._var.bait=window.document.body.appendChild(bait);this._var.bait.offsetParent;this._var.bait.offsetHeight;this._var.bait.offsetLeft;this._var.bait.offsetTop;this._var.bait.offsetWidth;this._var.bait.clientHeight;this._var.bait.clientWidth;};_AdBlock.prototype._destroyBait=function(){window.document.body.removeChild(this._var.bait);this._var.bait=null;};_AdBlock.prototype.check=function(loop){if(loop===undefined){loop=true;}if(this._var.checking===true){return false;}this._var.checking=true;if(this._var.bait===null){this._creatBait();}var self=this;this._var.loopNumber=0;if(loop===true){this._var.loop=setInterval(function(){self._checkBait(loop);},this._options.loopCheckTime);}setTimeout(function(){self._checkBait(loop);},1);return true;};_AdBlock.prototype._checkBait=function(loop){var detected=false;if(this._var.bait===null){this._creatBait();}if(window.document.body.getAttribute('abp')!==null||this._var.bait.offsetParent===null||this._var.bait.offsetHeight==0||this._var.bait.offsetLeft==0||this._var.bait.offsetTop==0||this._var.bait.offsetWidth==0||this._var.bait.clientHeight==0||this._var.bait.clientWidth==0){detected=true;}if(window.getComputedStyle!==undefined){var baitTemp=window.getComputedStyle(this._var.bait,null);if(baitTemp&&(baitTemp.getPropertyValue('display')=='none'||baitTemp.getPropertyValue('visibility')=='hidden')){detected=true;}}if(loop===true){this._var.loopNumber++;if(this._var.loopNumber>=this._options.loopMaxNumber){this._stopLoop();}}if(detected===true){this._stopLoop();this._destroyBait();this.emitEvent(true);if(loop===true){this._var.checking=false;}}else if(this._var.loop===null||loop===false){this._destroyBait();this.emitEvent(false);if(loop===true){this._var.checking=false;}}};_AdBlock.prototype._stopLoop=function(detected){clearInterval(this._var.loop);this._var.loop=null;this._var.loopNumber=0;};_AdBlock.prototype.emitEvent=function(detected){var fns=this._var.event[(detected===true?'detected':'notDetected')];for(var i in fns){if(fns.hasOwnProperty(i)){fns[i]();}}if(this._options.resetOnEnd===true){this.clearEvent();}return this;};_AdBlock.prototype.clearEvent=function(){this._var.event.detected=[];this._var.event.notDetected=[];};_AdBlock.prototype.on=function(detected,fn){this._var.event[(detected===true?'detected':'notDetected')].push(fn);return this;};_AdBlock.prototype.onDetected=function(fn){return this.on(true,fn);};_AdBlock.prototype.onNotDetected=function(fn){return this.on(false,fn);};window._AdBlock=_AdBlock;if(window._AdBlock_init===undefined){window._AdBlock_init=new _AdBlock({checkOnLoad:true,resetOnEnd:true});}})(window);

Thanks a lot ❤ , I hope there was some YT series explaining the filters in a simple way and using it on highly obfuscated websites like this one and many more example so we be able to get a good grasp of how it all works : )