Forums
New posts
Search forums
News
Security News
Technology News
Giveaways
Giveaways, Promotions and Contests
Discounts & Deals
Reviews
Users Reviews
Video Reviews
Support
Windows Malware Removal Help & Support
Inactive Support Threads
Mac Malware Removal Help & Support
Mobile Malware Removal Help & Support
Blog
Log in
Register
What's new
Search
Search titles only
By:
Search titles only
By:
Reply to thread
Menu
Install the app
Install
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Forums
Software
Browsers
Web Extensions
Best of Adblocking extensions
Message
<blockquote data-quote="Lenny_Fox" data-source="post: 843785" data-attributes="member: 82776"><p>I was intrigued by Adblockfast, I could not get my head around on how the developer managed with only 7 rules which were derived from EasyList and Bluhell, so this morning in the train to school I had a look at AdBlockfast on Github.</p><p></p><p>The bold statement:</p><p></p><p></p><p>Reading that I assumed that AdblockFast used some form of behavioral or heuristics mechanism, but then I read that the (only 7) rules were based on Easylist and Bluhelll</p><p></p><p></p><p>That seemed weird to me, how could you fit in a 50.000+ ruleset into just 7 rules? I found the answer on Github. In one of the files the 7-rules blocklist was included and after looking at it, it turnout the be a gigantic piped and concatenated 7 line blocklist based on regular expressions. The regex looks at fragments of the webpages loaded and when the string matches any of the regex values it blocks it. Normally regex is a bit slower than ABP-rules so the developer pulled some tricks to make it run faster than AdblockPlus.</p><p></p><p>To the developer's credit he really looked upon adblocking from an interesting angle and pulled some remarkeable tricks to make it work, but when you copy the 7-rules Adblockfast into a word document, you end up with a 53 page document with a little less than 20.000 regex. So the 7-line rule file contains 19.076 regex rules, clever <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite130" alt="(y)" title="Thumbs up (y)" loading="lazy" data-shortname="(y)" /></p><p></p><p>In the picture below the | is replaced by X, so MsWord would tell me how much pipes (or's) were used in the 7 line rules file.</p><p></p><p>[ATTACH=full]229447[/ATTACH]</p></blockquote><p></p>
[QUOTE="Lenny_Fox, post: 843785, member: 82776"] I was intrigued by Adblockfast, I could not get my head around on how the developer managed with only 7 rules which were derived from EasyList and Bluhell, so this morning in the train to school I had a look at AdBlockfast on Github. The bold statement: Reading that I assumed that AdblockFast used some form of behavioral or heuristics mechanism, but then I read that the (only 7) rules were based on Easylist and Bluhelll That seemed weird to me, how could you fit in a 50.000+ ruleset into just 7 rules? I found the answer on Github. In one of the files the 7-rules blocklist was included and after looking at it, it turnout the be a gigantic piped and concatenated 7 line blocklist based on regular expressions. The regex looks at fragments of the webpages loaded and when the string matches any of the regex values it blocks it. Normally regex is a bit slower than ABP-rules so the developer pulled some tricks to make it run faster than AdblockPlus. To the developer's credit he really looked upon adblocking from an interesting angle and pulled some remarkeable tricks to make it work, but when you copy the 7-rules Adblockfast into a word document, you end up with a 53 page document with a little less than 20.000 regex. So the 7-line rule file contains 19.076 regex rules, clever (y) In the picture below the | is replaced by X, so MsWord would tell me how much pipes (or's) were used in the 7 line rules file. [ATTACH type="full" alt="1573203983217.png"]229447[/ATTACH] [/QUOTE]
Insert quotes…
Verification
Post reply
Top