Thursday, June 11, 2009

How to Block websites from accessing.

Requirement:
This can be done if you are giving access to someone else to use your personal computer. since you don't want them to access any site which you wanted to prevent accessing from your PC, you can go through this.
It is the simplest and advanced way of blocking site instead of using some third party application to block such.
To Do:
Open CMD / Command Prompt
Type: "notepad c:/windows/system32/drivers/etc/hosts"
When pressed enter after typing the notepad window pops up with the hosts file's details.
or the other way to open is open "C:\WINDOWS\system32\drivers\etc"
here drag and drop the "hosts" file into a notepad.
here locate the line "127.0.0.1 localhost".
To Block a website e.g.: google
type below the line "127.0.0.1 localhost"
127.0.0.1 www.google.com
127.0.0.1 google.com
127.0.0.1 www.google.co.in/uk/za etc.....
127.0.0.1 google.co.in/uk/za etc.....
Save the file(do not save as anything or it wont work)

How to Create a Show Desktop Icon on Quick Launch?

Requirement:
This is a fix for the cases where you delete your Show Desktop Icon from system tray.
To Do:
- Open notepad and type the Followings...
[shell]
command=2
icon file= explorer.exe,3
[taskbar]
command=ToggleDesktop
- Save this File as "Show Desktop.scf"
- Now drag this file from where every you have saved and drop it in the quick launch bar.
Note: Do not give space while typing this content.