A lot of this information is a compilation of what I have asked for or read about on this website. It also comes from my boredom at work when I am messing around with the computers. I will link the Instructables that have helped me accomplish the creation of this file.
The basic idea of editing the file comes from How to "hack this site".
Help with coding came from Neodudeman.
I am not liable for any trouble you cause with this. Use it however you want to mess with computers, but if something goes wrong...well, I warned you.
Remove these ads by
Signing UpStep 1Batch Basics
@echo off - this will make it so that when you open up the batch file, it wont show the commands
echo - any text following this will be shown on the Command Prompt window
ex. echo Hello World (see pic)
Pause - causes the batch file to stop. Displays "Press any key to continue..."
echo. - creates a blank line
@echo off > - starts a new file
ex. @echo off > hosts would create file called "hosts"
If you add .txt at the end, it would make a text file. So @echo off > test.txt would make a text version of the file
>> hosts - used at the end of a line. This causes the text on that line to be added to the file "hosts"
If you made the file something like test.txt in the previous command (@echo off >) then you would put that in this command every time you use it
ex.
@echo off test.txtecho Hi >> test.txtcd - change the directory
cd\ - change the directory to the main drive (ie. C:\)
cd\%windir% - change the directory to your WINDOWS folder
del - deletes a file
attrib - changes the attributes of a file (hidden/read-only etc)
| « Previous Step | Download PDFView All Steps | Next Step » |









































echo *
Rather than
echo *.*.*.*
Because I meant to, lol.
So that it points the browser to your own computer to look for the 'index.htm' file, and displays that instead of the real site. So you could make a page where it says "Access: DENIED" really big.