Jump to content

Ip blocker for fake IP\Clients


maor parizat

Recommended Posts

made a script ..

make your life easy to block fake clients

called it block.cmd

usage:

block 999.999.999.999

block & enter input later

 

best way of usage

set an ip filter file and update settings in script

copy block.cmd into windows directory

than run start block 999.999.999.99

finish !

 

pastebin link

 

 

Quote


@cls
@echo off

set address=d:\utorrent\ipfilter.dat
set ip=%1

if exist "%address%" goto :before
cls
echo.
echo Utorrent "ipfilter.dat" file do not exist
echo. update Block.cmd file with new address
pause
exit

:before
if "%1" == "" goto :process_Input
if "%1" == " " goto :process_Input
if "%1" == "  " goto :process_Input

:after
echo "%ip%" | find /i ":"

IF "%ERRORLEVEL%" == "0" (
cls
echo.
echo No port allowed.
echo.
pause
exit
)

attrib %address% -r -a -s -h
echo. >>%address%
echo %ip% - %ip%, 000, >>%address%

IF ERRORLEVEL 1 (
cls
echo.
echo process fail.
echo.
pause
)

exit

:process_Input
set /p ip=Enter Ip: 
goto :after
 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...