How To Block Any Website Using Notepad

In this post, I am going to talk about how to block any website on your computer without using any software. You can do this with the help of notepad. But if you are too lazy to use notepad, you can just block a website with a mouse click. Interesting right?

But first of all, Why would you want to block a website? There are many reasons why you might need to block a website.

Parental Control – To block adult websites such as porn sites, gambling sites, etc.

You might also want to block social networking sites on a temporary basis, so that you can focus on your work without distraction. Or you can also use this trick as a prank by blocking websites on your friend’s computer.

Method 1) – How to Block a Website Using Hosts File ?

To access the hosts file in Windows you can use the following command in the Run Dialog Box to open notepad and the file.

notepad and fileAs shown in the image above, Type the following command in the Run Dialog Box.

notepad c:windowssystem32driversetchosts

OR just navigate to c:windowssystem32driversetc and open hosts file using Notepad.

After opening the file, Add the following code at the end of the file:

0.0.0.0    www.facebook.com

After adding the code, the file will look like this:

after-adding-fb-block-codeSave the file.

And now if you try to access facebook then you wont be able to do so !

When you try to access, An error will occur in the browser saying – “The webpage cannot be found” or something like that.

Method 2) – Blocking Websites Simply by Using Notepad

Open Notepad and copy paste the following code:

@echo off
echo 127.0.0.1 www.google.com >> C:windowssystem32driversetchosts.txt
echo 127.0.0.1 www.yahoo.com >> C:windowssystem32driversetchosts.txt
exit

Save the file as BlockWebsites.bat

Now once you open the the batch file, google.com and yahoo.com are blocked. You can modify the batch file according to your needs.

Method 3) – Using a Batch File Created by Amit Agarwal

You can double click on the batch file to block all websites listed in it. And double click again to unblock the websites.

You can download the batch file by Clicking Here.

So that’s all in this post. Thanks for reading. If you have any doubts or questions, you can comment below. I will respond asap !

How To Create Signature in Gmail

Usually in physical world we all end a letter or a mail with a signature. But do you know that you can add a signature to your e-mails as well ?

I am not talking of signing mails manually every time you compose an e-mail.

I am talking about adding a electronic signature to your mail settings which will then be added as a footer to each and every email which you send.

This is called an e-mail signature. And this feature is available in almost every e-mail service like Google, Yahoo, Hotmail, etc. But in this thread, I am going to talk about how to add signature to your Gmail account.

Also note that this might be a very simple or newbie type of thread for you if you are a computer geek. But there are many people around me who don’t know about this. And i am writing this short post to help them out.

google mail settings

Then after, in General Settings. You can find Signature feature as shown below.

signature in gmail

You can add normal text, or an image, or even a link in your signature.

And then save changes to your Gmail Settings. That’s it.

WordPress OrangeBox Plugin doesn’t work in Sidebar

OrangeBox is a plugin for WordPress which creates a fancybox or thickbox effect for all media on your blog. Such as pictures, videos, etc.

Its really nice and effective fancybox plugin which you can use with your WordPress blog.

Now about the problem, The plugin only works in Single post or Single page area of WordPress posts.

I wasn’t aware of this till the time i tried to use OrangeBox in the sidebar !

When i tried to use OrangeBox in the sidebar, it just used to open up a completely new web page instead of opening the content in a fancybox.

I have drawn a image which explains this problem very well –

orangebox-sidebar-problem

See the image above, Consider you want to open the blue image in the sidebar of your blog.

Case 1 – When you click on the image in the sidebar, it simply opens up in a new window.

Case 2 – When you click on the image in the sidebar, it opens up in a fancybox effect with the help of OrangeBox.

Case 1 is our problem and Case 2 is how we want it to work.

How to Solve it?

If you are displaying an image link in the sidebar then you might be using this type of code:

And that code might not work well with OrangeBox.

So to get it to work, you can just replace that code with the following code:

And that would definitely solve the problem.

If you have any questions or if this doesn’t work out with your blog, then comment below. I’ll try and help asap. Thanks for reading.