answersLogoWhite

0


Best Answer

echo 127.0.0.1 insertdomainnamehere>>C:\Windows\System32\drivers\etc\hosts

Make sure you run command prompt as an administrator and check that the hosts file (in this folder: C:\Windows\System32\drivers\etc) is not marked for read-only.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you block a website using command prompt?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you make yourself administrator using command prompt?

To make yourself administrator using command prompt: 1) go to start use run and type cmd. 2)type in "net user admin." 3)type in 'net user (admin name space *.) 4)type in pass (pass will not show on tab) retype pass 5)logout and login the account with your password


How can send IM in a network using command prompt?

"msg" command might help. It pops up a message box on the users PC. C:/> msg <user_name> "Hello" "msg" command might help. It pops up a message box on the users PC. C:/> msg <user_name> "Hello"


Please someone explain you command line argument in C?

Command Line Arguments---- I am trying to explain each word one by oneCommand ------perform specific taskex. When CMD is typed in run window and then press ok button then open a black screen that is called command prompt.Command Line ------on command prompt where command is supplied that is called command line.using command prompt dos commands are executed and java program is also executed using command prompt.for executing java program command is supplied with given syntaxjava java_class_name argument1 argument2.........Java--- is a commandjava_class_name ---name of java file which you want to executeargument1 argument2 --- are the values passing to java application from out sidethese argument1 argument2 are stored in string array argument of main method


How do I put a dropdown list inside a prompt box using Javascript?

not posiible


What is classpath and path in java?

if you are using the IDE then there is no need to set class path, ant you are using Command prompt to run the java program then you need to set the class path where the class (which is going to be used in your program) is actually located,use the following command:set calsspath=%classpath%;actual_path_of the class;we cancall more than two class by using this command by using separator (,)

Related questions

How do you do next line in command prompt?

when using command prompt, after you give it a command, press the enter button. Command prompt will then carry out the task and will automatically go to the next line.


How can you bypass internet filtering using command prompt?

Its not possible from DOS Prompt..


How do you run checksum from DOS prompt?

You can do it by using "chkdsk" command.


How do you change registry using command prompt which name is in spaces?

You can start registry editor using command prompt by using "regedit" command. You can also use registry tools such as "regedit /restore" or "regedit /fix" etc.


What is the command to run your programexe using the command prompt?

Run program.exeorthe name of the program, with or without .exe (if the command prompt is in the same directory/folder of the executable)


How do you start regedit using command prompt?

Just run "regedit" command from DOS..


How can you see a log of internet connections using command prompt in windows vista?

use the netstat command.


Windows 2000XP volume folder and file compression can be done using what command at the command prompt?

compact


Where can one gain more information about how to use the Linux terminal?

At the command prompt, type 'man [command]' (removing the brackets and substituting the command for which you need information).


How do you recover data from Command prompt?

The command prompt is a terminal window, and allows the user to control their computer using specific commands. Command line recovery tools include ddrescue and the ntfs* family of tools.


Can i lose my data if I Uninstall Windows XP using command prompt?

You can't uninstall Windows XP, from the command line or otherwise.


How can you show your ip address and subnet mask by using Dos command ipconfig?

Just go to command prompt. Type in "ipconfig"