proginosko / LeechBlockNG-chrome

LeechBlock NG (Next Generation) for Chrome is a simple productivity tool designed to block those time-wasting sites that can suck the life out of your working day. All you need to do is specify which sites to block and when to block them.
https://www.proginosko.com/leechblock/
Mozilla Public License 2.0
72 stars 14 forks source link

allowed referrer seems to allow redirects from original allowed page #53

Open skewballfox opened 1 year ago

skewballfox commented 1 year ago

sorry for the convoluted title, I was trying to set up blocking reddit unless the referrer is my search engine. the rules are as follows

>google.com
reddit.com

with the advance option to allow if from whitelisted referrer.

If I navigate directly to reddit, then it works as intended. if I navigate to reddit by via my search engine, I can view the content(as expected). if I then click on reddit, or any internal other internal links, it allows it.

I suppose the expected behavior is that redirections from the original whitelisted page should be blocked

proginosko commented 1 year ago

I'm not sure why you're getting that behavior. The fact is that the referrer feature isn't 100% reliable, and usually it's the browser's fault for not properly reporting the referring site/page. You might be able to figure out what's happening by activating "Diagnostic mode" (under General options) and opening the console for the extension's background page (go to chrome://extensions and click the link after "Inspect views"). Whenever a page is blocked, you'll see info posted to the console.