Slag blocking, or how to block the Internet

I cannot call myself a person with great willpower. And mediocre too. But I really like to procrastinate and use any available opportunity for this, for example, watching memes or meaningless videos on YouTube. Over time, this became more and more stressful and interfered with my studies / work. In the presence of stress, productivity tended to zero, and doing other things took up all the free (and not free) time. This is how my struggle with the internet began. How did it go?





Iteration 0



20 .   - ,     20 . ,   (  ,  ..) โ€” , .       โ€”    - ,   . ,      , .



 1



 ,          โ€” , , , ,  โ€” ,    .  , -   Leech Block,  , ,   .   youtube.com   ,  , .





 . ,   ,       / ยซ ยป   /    05:00  06:00.   - .



 2



 , ,   ,  โ€”   .  LeechBlock 32, 64  128- .



Figure 2. Settings for entering random characters



,   ,         .  , .





 ,   โ€” 128 ,   . !



 3



  128-     .   .   .  โ€” /   .  ,    ,   ?  -     ,  , , .



  , .  โ€”     . (, ยซยป).   (, ,   ).





 ,     ,     ยซ ยป.  , ,   ...



 4



 .       ,   ,   ,   Firefox  Chrome.   ,  , , (    Egde IE) โ€”  ,  .   -.       Mozilla ,  ,   ,   โ€”   . Firefox , ( ) โ€” policies.json,   distribution   .



  :



{
    "policies" : {
        "Extensions": {
            "Install": ["https://addons.mozilla.org/firefox/downloads/file/1742831/leechblock_ng-0.9.11-an+fx.xpi"],
            "Locked":  ["leechblockng@proginosko.com"]
        }
    }
}


!  Firefox . , ,     , .





Chrome  โ€”  Windows ,    โ€” JSON . Chrome (     Chromium, ).     .



  .reg , Chrome, Chromium  Firefox



 5



,     ,   . โ€ฆ      ? !   ,   YouTube  /Edge/IE/Comodo Dragon/Chromium/etc.     ? , (IE/Edge)   ,         .







      .  Windows App Locker โ€”       . Chromium   , ,    โ€” ,     . Desperate times call for desperate measures.





Edge  IE. IE  Windows 10        (  ,   ), , , .  Edge Edge Block,   .    , .



,   .     ,    . , ,       .



 6



 YouTube   .       YouTube.  โ€”  . 3-4   ( ,    ,     )   ,  YouTube.  ,    (   ),       .

,  dualboot,         โ€”   (  ,   ). - !  ,   โ€”   ,  dropbox,   , . ,     ,         . , .



 โ€”  ,   .





 7.



YouTube ; ,  YouTube, .  , ,  ,   ,  โ€” .  YouTube,   ,     (   , ), yandex.ru/video  ,     .



  ?  .   โ€”    ,     (, yandex.ru/video , ).  โ€”   . (  dropbox),   , .     โ€™*โ€™,  , ,   ~, .





 โ€”



 ,  ,   (  ). , Firefox     GPO,  ,     ;  sync storage ( , ,   . () -  );  - ;  Linux ( )   chattr.   ,   ,   ;  โ€”  โ€”    , .



 



  ,          (   ).   ,   () , ,    , ( ).



 Android , .   Stay Focused  BlockSite. BlockSite     - ,             . ,   , 4- ,        .



Stay Focused   ,   (   )   (  ) ,   .  ,   ,   , Bluetooth .  ,    ,     . Single Responsibility.



  Stay Focused, ,    .  , (Firefox, ,   ,   ), LeechBlock      ,    . YouTube    .



,     128- ,     ,    โ€”   .





Thus, we have created a system that requires significant effort to disable it, which allows you to effectively block unwanted sites. To completely go through everythingcircles of hell iteration took a year and a half, but the result is worth it.



application



Appendix 1. Contents of .reg file to protect extensions
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Chromium]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Chromium\ExtensionInstallForcelist]
"1"="blaaajhemilngeeffpbfkdjjoefldkok;https://clients2.google.com/service/update2/crx"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chrome\ExtensionInstallForcelist]
"1"="blaaajhemilngeeffpbfkdjjoefldkok;https://clients2.google.com/service/update2/crx"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox\Extensions]

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox\Extensions\Install]
"1"="https://addons.mozilla.org/firefox/downloads/file/1742831/leechblock_ng-0.9.11-an+fx.xpi"

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Mozilla\Firefox\Extensions\Locked]
"1"="leechblockng@proginosko.com"


Appendix 2. The final version of the settings for LeechBlock

setName1=SITES

sites1=10-youtube.com 100youtube.com 10convert.com 220youtube.com acomics.ru bash.im bitdownloader.com ddownr.com getvideo.org keepvid.pro notube.net onlinevideoconverter.com pikabu.ru pinterest.ru reddit.com savefrom.net savemedia.website saveyoutube.ru savido.net sconverter.com tasvideos.org topmemas.top tumblr.com twitch.tv twitter.com vk.com/mhkoff vk.com/mhkon vk.com/ru9gag y2mate.com yandex.ru/portal yandex.ru/video youtube-mp4.download youtube.com youtubeconverter.io youtubemp4.to youtufab.com

times1=0000-2400

limitMins1=

limitPeriod1=

limitOffset1=

conjMode1=false

days1=127

blockURL1=blocked.html?$S&$U

applyFilter1=false

filterName1=grayscale

activeBlock1=true

countFocus1=true

delayFirst1=true

delaySecs1=60

reloadSecs1=

allowOverride1=false

prevOpts1=true

prevExts1=false

prevSettings1=false

showTimer1=true

sitesURL1=https://dl.dropboxusercontent.com/s/your_data_here/blocksitelist.txt?dl=0

regexpBlock1=

regexpAllow1=

ignoreHash1=true

setName2=About:profiles

sites2=

times2=0000-2400

limitMins2=

limitPeriod2=

limitOffset2=

conjMode2=false

days2=127

blockURL2=blocked.html?$S&$U

applyFilter2=false

filterName2=grayscale

activeBlock2=false

countFocus2=true

delayFirst2=true

delaySecs2=60

reloadSecs2=

allowOverride2=false

prevOpts2=true

prevExts2=false

prevSettings2=false

showTimer2=true

sitesURL2=

regexpBlock2=about:profiles

regexpAllow2=

ignoreHash2=true

setName3=KEYWORDS

sites3=

times3=0000-2400

limitMins3=

limitPeriod3=

limitOffset3=

conjMode3=false

days3=127

blockURL3=blocked.html?$S&$U

applyFilter3=false

filterName3=grayscale

activeBlock3=false

countFocus3=true

delayFirst3=true

delaySecs3=60

reloadSecs3=

allowOverride3=false

prevOpts3=true

prevExts3=false

prevSettings3=false

showTimer3=true

sitesURL3=https://dl.dropboxusercontent.com/s/your_other_data_here/keywordlist.txt?dl=0

regexpBlock3=

regexpAllow3=

ignoreHash3=true

numSets=3

sync=true

theme=

oa=0

password=

hpp=true

timerVisible=true

timerSize=1

timerLocation=0

timerBadge=true

orm=

ora=0

orc=true

warnSecs=

warnImmediate=true

contextMenu=true

matchSubdomains=true

saveSecs=10

processActiveTabs=false

accessCodeImage=false

autoExportSync=true




All Articles