Skip to main content

How to prevent access to a web site in your computer and redirect it to a different website or a server.

How to prevent access to a web site in your computer and redirect it to a different website or a server.

This is a very easy trick and this will help you to block certain web sites from your computer.

This is for windows Xp

This trick is done by redirecting the URL (which you want to block) to another URL.

Follow the steps carefully:

First you will have to ping a website and get the address of the website, so that when ever a user tries to go to the website which you want to block they will be redirected to a different website. This redirection can be either done to another website or to a server.

To ping a website use the following command in the command prompt:

ping www.yahoo.com

you will get some thing like this.

Pinging www.yahoo-ht3.akadns.net [86.248.113.14] with 32 bytes of data:

……………………..

………………………..

The numbers within the brackets represents the address of the server. The address will vary, so run the ping command in the command prompt of your computer and get the address.

Then go to c:\windows\system32\drivers\etc\hosts and then open the hosts file in the notepad.

There at the end of the file addthe following line:

86.248.113.14 websitetoblock.com www.websitetoblock.com

Just save the file and then in any browser, open the website to block. Now instead of the website you will have the website whose address has been entered (e.g. 86.248.113.14),that is www.yahoo.com.You can have the redirection to any website you want.

If you want to redirect to a server then enter the address of the server to which you want to redirect to.

Popular posts from this blog

How to make print screen button to automatically open the Snipping tool in Windows 11

 In windows you can search for keyboard from start menu and open keyboard settings.  Or you can go to Settings > Accessibility > Keyboard. In the keyboard settings window, toggle the switch that says "Use the Print screen button to open screen snipping".  Hereafter whenever you press print screen button, you will be able to make a selection on the screen for a screenshot.  

How to get Ribbon Style Interface in LibreOffice Write and Calc.

The ribbon interface in Microsoft office makes it easy for users to complete tasks easily. You can get a similar interface in LibreOffice by following the steps below: 1. Download the latest version of LibreOffice (at the time of writing this post, the version is 5.4) 2. Open LibreOffice Writer and Go to Tools > Options. 3. Under LibreOffice section, click Advanced. 4. Check the checkbox saying, "Enable Experimental Features". 5. Now go to View > Toolbars > select Notebookbar. 6. After restating, you should get ribbons. 7. You can still access the old layout by clicking on the three slider menu button and selecting MenuBar, to show the old style menu bar as well. If you want to change the tool bar style, you can select View (in the old style Menubar) > Toolbar Layout > Default. You can do the same for LibreOffice Calc as well.

How to automatically shut down computer after downloading in WIndows PC

You may have to shut down the PC after a certain time to automate your computer to shut down, say after finishing a download. To do so, you need to open the command prompt. In the command prompt, type the following: shutdown -s -t xxx where, xxx = time in seconds. If you decide to abort the above within the time, type the following in the command prompt. shutdown -a Eg, shutdown -s -t 2400 will shutdown the computer in 40 minutes (2400/60).