Do you feel like you're spending too much time on Facebook when you should be focusing on other tasks? Perhaps you'd like to limit your own (or your child's) access to Facebook on your computer? The following article provides some methods to help you do that.
StepsInstall a Facebook Blocking Program

To block Facebook on a specific internet browser, download Github's Facebook Blocker. The website offers versions for Chrome, Firefox, Safari, and Opera. The Facebook Blocker (Facebook Blocking Program) will allow you to continuously block Facebook access through that browser, or limit access for a specific period of time.

For Mac users, download Self Control. Set a time limit for how long you allow yourself to access restricted websites. Then, add
http://facebook.com to the list to block access to restricted websites across all the browsers you use.

For Windows users, download Cold Turkey. Choose the sites you want to block and set the time frame during which the block will be active.
Manually Block Facebook Using Internet Explorer
Internet Explorer users can block Facebook, but there's no option to set a time limit. You will need to manually unblock it if you want to use Facebook again, and this entirely depends on your self-discipline, as you may unblock it after a very short time.

Open Internet Explorer and select Tools.

Select Internet Options and click on Security.

Click on Restricted sites and choose Select Sites. Enter "facebook.com" and click Add.

Close the window and try to access Facebook to see the results.
Manually Block Facebook on macOS
You can use the Parental Controls feature on macOS to manually block Facebook. If you want to unblock it later, you'll have to do so manually, and this entirely depends on your self-control, as you may end up unblocking it sooner than expected. If you block Facebook access for your children, they won’t be able to unblock it unless they have access to your Mac admin account.

Click the Apple icon in the top-left corner and select "System Preferences".

Choose "User and Groups" to create a new user account without administrative privileges. This account will be blocked from accessing Facebook through the Parental Controls feature.

Return to System Preferences. Click on "Parental Controls" and enable this feature by checking the box.

Select the non-admin user from the left-hand toolbar. Choose "Try to limit access to adult websites automatically" and click the "Customize" button below.

Under "Never allow these websites", click "+". Add "
http://facebook.com" and press "Return" on your keyboard. Then click the blue "OK" button to block Facebook for this account.