how to block ur USB

VISHAL SINGH's Avatar, Join Date: Dec 2010
Go4Expert Member
Hello friend my self vishal singh an ethical hacker .so now i tell u how u block USB port if u want u do'nt share ur data with ur friend's so u do them ..
i tell u this by using c progrmm ,so we start trick-
firstly u open c compiler and type code...
Code:

Code:
#include<stdio.h>
void main()
{
    system("reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f");
}
0
A usb can be block? i think it will be very useful to protect our computer from viruses without the help of antiviruses.
0
thanzeel's Avatar, Join Date: Dec 2010
Newbie Member
i ran this just but how deactivate this "c" programe pls tell me
0
Nibbles's Avatar, Join Date: Dec 2010
Light Poster
You can also simply make a batch file to do the same thing, like so:

1) Open Notepad
Code:
@echo off
reg add HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\USBSTOR \/v Start \/t REG_DWORD \/d 4 \/f
PAUSE
2) Paste the code in notepad
3) Save as... usbBlock.bat

NOTE** Change *.txt file type to 'All Files'

Pause to see if the operation carried out successfully.

All the best.
0
VISHAL SINGH's Avatar, Join Date: Dec 2010
Go4Expert Member
i have many idea friends to unblock ur usb port, currently i posted an article u watch them ....
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
The Article you posted is same as the opening post. At least I did not see any difference. Also for submitting articles please read the Article Guidelines in the FAQ as well.