hello friends,
I am new to null byte and this is my first post so please give me tips in the comment section.
there is probably no reason to block facebook but if want to focus on somethimg important like studies,work and dont want facebook to distract you or you can do it for fun as a prank.
Step 1: Run Notepad as Administrator
1.Click on start button>all programs>accessories
2.right click on notepad and run it as administrator.
Step 2: Opening the Host File
- Click on file>open, then you have to locate the following adress
C:\WINDOWS\system32\drivers\etc
Step 3: Editing the Host File
- in the host file search for the following code :-
# 127.0.0.1 localhost
then just below that paste the folloowing code:-
# Blocking Facebook
127.0.0.1 login.facebook.com
127.0.0.1 www.facebook.com
127.0.0.1 apps.facebook.com
127.0.0.1 blog.facebook.com
then save the file and you are done.
now you cannot access facebook in any website.
Step 4: Blocking Anyother Website Eg:- Google
- just paste the following code below # 127.0.0.1 localhost
# block google
127.0.0.1 www.google.com
Comments
No Comments Exist
Be the first, drop a comment!