DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: IDEA: block a website for x amount of time  (Read 5,129 times)

relipse

  • I love Jesus. Coding in PHP primarily.
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 131
    • Participated in NANY Challenge Seven Times
IDEA: block a website for x amount of time
« on: March 04, 2013, 05:45 PM »
I am a freelancer so I get distracted easily on facebook. Can someone write an app to block a website for a certain amount of minutes. That way i could do work for 2 hours while i disable facebook.com

Ideally i'd like it to sit in the system tray and have a right click menu block website, and you type it in or choose it from recent list and then choose how many minutes you want it blocked.

This might be able to be accomplished by editing the windows hosts file and then re-editing it when the time is up.

Jim
Ex C++Builder coder, current PHP coder, and noob Qt Coder

relipse

  • I love Jesus. Coding in PHP primarily.
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 131
    • Participated in NANY Challenge Seven Times
Re: IDEA: block a website for x amount of time
« Reply #1 on: March 04, 2013, 07:20 PM »
now there is a program called focalfilter (http://www.focalfilter.com/)
that does this, it would be nice if there were a system tray interface and you could block more than 1 set of websites at a time
Ex C++Builder coder, current PHP coder, and noob Qt Coder

hamradio

  • Amateur Radio Guy
  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 893
    • Plugin Coding Medal
    • Participated in NANY Challenge Fifteen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
    • Hardware Hacker
Re: IDEA: block a website for x amount of time
« Reply #2 on: March 04, 2013, 07:33 PM »
if (using_firefox == true)
{
LeechBlock :: Add-ons for Firefox
}
else if (using_chrome == true)
{
Chrome Web Store - Nanny for Google Chrome (TM)
}
:D

Ive used LeechBlock but not Nanny so dont know about it just a simple search at google helped me find it.
« Last Edit: March 04, 2013, 07:39 PM by hamradio »

Original address: https://www.donationcoder.com/forum/index.php?topic=34222.0