Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: ban ip script

  1. #1
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts

    ban ip script

    hello

    I like the ban script posted here
    Ban Ip Script

    funny thing the creator for the script seems has been banned ..

    any way the script works Ok just the Length , seems problem with the length Veriable
    PHP Code:
    Undefined indexlegnth in file func.ban.php line 20 
    can someone look at it ... or if any knows script do same thing .
    ban ... Reason of ban ... time length.. for how long banned ip shoud keep out

  • #2
    Senior Coder Len Whistler's Avatar
    Join Date
    Jul 2002
    Location
    Vancouver, BC Canada
    Posts
    1,323
    Thanks
    26
    Thanked 100 Times in 100 Posts
    This post from that thread is very good:

    Ban Ip Script


    ----------------
    Leonard Whistler

  • #3
    Regular Coder
    Join Date
    Aug 2009
    Posts
    215
    Thanks
    74
    Thanked 0 Times in 0 Posts
    would be much better if u answered my quastion if u knew the answer .. but thx for the link i have already read it before .. and still need to ban some by the ip and whenever they change it iwill ban them again .. my work includes auto ban in ay time he or she gets new ip

  • #4
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,555
    Thanks
    57
    Thanked 148 Times in 147 Posts
    all leads back to this:

    PHP Code:
    echo "Legnth<br /><input type='text' name='legnth'><br />"
    nothing actualy wrong with this code but make sure name='legnth' is the same, form method is set to post. Maybe even stick
    PHP Code:
    die($_POST['legnth']); 
    at the bottom of banadmin.php to see whats hapening
    Last edited by Phil Jackson; 09-14-2009 at 07:07 AM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •