Please login or register.

Login with username, password and session length
gfx gfx
76781 Posts in 13501 Topics by 1651 Members - Latest Member: Arnold99 July 18, 2024, 02:25:17 pm
WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Ban By Hostname (Author Unknown)

Author Topic: Ban By Hostname (Author Unknown)  (Read 3246 times)

0 Members and 1 Guest are viewing this topic.

Offline Stevi

  • #1 DJ
  • MX Hosts
  • *****
  • Ooops! I blew up the commercials!
    • WinMX Radio
Ban By Hostname (Author Unknown)
« on: December 02, 2006, 05:37:53 pm »
This is one great script. Sometimes some users IP changes and their hostname doesnt. This script will check the hostname on entry and ban if it finds it in the list.

Files to be created:
1. Create a text file called Banned.txt in C:\Program Files\BOTNAME\Plugins\
2. Create a folder called hostname in C:\Program Files\RoboMX\Plugins\

Code: [Select]
<OnEnter type="script">
<out type="push" extdata="Host">%HOSTNAME%</out>
<out type="push" extdata="RawName">%NAME%</out>
<out type="file" mode="t" extdata="C:\Program Files\RoboMX\Plugins\hostname\$RawName$.txt">$Host$</out>
<out delay="2000">/opmsg Users Hostname is being checked against Ban List</out>
<out type="push" extdata="RECENTS"><operator type="readfile" nvalue="C:\Program Files\RoboMX\Plugins\Banned.txt" lvalue="c" rvalue="-1"/></out>
<out type="push" extdata="RULE8">NO</out>
<out type="push" extdata="RULE8" condition="?" lvalue="$RECENTS$" rvalue="%HOSTNAME%">YES</out>
<out condition="==" lvalue="$RULE8$" rvalue="NO">/opmsg Check Complete</out>
<out condition="==" lvalue="$RULE8$" rvalue="YES"> #c1#You Where Banned #c8#%NAME%#c1#, Nice Try but their no slipping Past us Bye Bye.</out>
<out condition="==" lvalue="$RULE8$" rvalue="YES">/opmsg Dont forget to /clearbans if you have unbanned them</out>
<out delay="5000"condition="==" lvalue="$RULE8$" rvalue="YES">/kickban %NAME%</out>

<OnOpMessage type="script">
<in>/kickban %PARAM%</in>
<out type="push" extdata="NAME">%PARAM%</out>
<out type="push" extdata="GO"><operator type="readfile" nvalue="C:\Program Files\RoboMX\Plugins\hostname\$NAME$.txt" lvalue="c" rvalue=-1/></out>
<out>/opmsg This Hostname :-$GO$ Has been added to the ban list, to remove it type /clearbans</out>
<out type="file" mode="a" extdata="C:\Program Files\RoboMX\Plugins\Banned.txt"> $GO$ \n</out>

<OnOpMessage type="script">
<out type="file" mode="t" extdata="C:\Program Files\RoboMX\Plugins\Banned.txt"></out>
<out delay="500">/opmsg Host Ban file cleared also</out>

Re: Ban By Hostname (Author Unknown)
« Reply #1 on: June 30, 2009, 08:06:15 pm »
in this script do i put the hostname i want banning in the banned.txt file?

Offline wonderer

  • MX Hosts
  • *****
  • ***
Re: Ban By Hostname (Author Unknown)
« Reply #2 on: June 30, 2009, 09:42:29 pm »
Be aware!!

This is script looks nice but has little or no value, specially when user's IP is changing as happens with a dynamic IP.

For more details on how this works you should take a look into the better welcome back scripts.

Most ISP generated hostnames contain parts or whole IP numbers changing with the user who gets the IP that day/week or whatever time.
This script only works for the very few users where the hostname is based on subscribers number and even than may change.

Before you start using it, write usernames +hostnames to a file for a couple of days and take a look into it.......

Offline deadlydeathangel

  • Forum Member
  • =D (always willing to lend a hand)
Re: Ban By Hostname (Author Unknown)
« Reply #3 on: October 11, 2009, 02:49:27 am »
that looks like one of my scripts ;o but i have added partial to mine :D

WinMX World :: Forum  |  Metis Scripts and Help  |  Other Metis scripts  |  Ban By Hostname (Author Unknown)

©2005-2024 All Rights Reserved.
SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies
Page created in 0.017 seconds with 23 queries.
Helios Multi © Bloc
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!