Results 1 to 11 of 11
  1. #1
    Join Date
    Oct 2003
    Location
    Norway, Rognan
    Posts
    2

    How do I ban IP permanently!

    Is there any way to ban people from entering my site www.purloin.net permanently? I have had problems with people messing araound..... i can only do temperarly ip ban..

  2. #2
    Join Date
    Apr 2003
    Location
    Austin, TX
    Posts
    304
    For sites using Apache, you can specify the particular IP in a .htaccess file. Don't know if that helps your situation. If you are using a commercial control panel, maybe there is a feature that assists you with that...otherwise, the server firewall may be able to block this out for you. Good luck.
    JC, www.webii.net
    Premium Hosting Services Since 1996
    Custom Development- www.webxess.net

  3. #3
    Join Date
    Jun 2002
    Location
    Toronto, Ontario
    Posts
    1,452
    I believe you can use .htaccess to do a no access from a specified IP address.

  4. #4

    Re: How do I ban IP permanently!

    Originally posted by Ingardj
    Is there any way to ban people from entering my site www.purloin.net permanently? I have had problems with people messing araound..... i can only do temperarly ip ban..
    You have a problem with people messing around? Could you explain that a bit further?

    In addition to banning, depending on the definition of messing around, sounds like you need to do some other security upgrades.

  5. #5
    If they are on a dial-up or savvy enough to use proxies an IP ban is pretty much worthless. As Incognito already asked, some more information on what exactly "messing around" is might get you some more valuable responses here...

  6. #6
    Join Date
    Nov 2002
    Location
    CA, USA
    Posts
    1,903
    they can use proxy and enter your site again. Make friend with them. That would save you the headache.
    ◊ James | sales@vnpixel.com |
    ◊ aim: vnpixel • msn: support@vnpixel.com • yahoo: vn_pixel
    ◊ http://www.vnpixel.com

  7. #7
    Join Date
    Jan 2002
    Location
    USA
    Posts
    720
    You can use .htaccess to block a range of IPs. Put something like this inside your .htaccess file:



    code:--------------------------------------------------------------------------------
    <Limit GET PUT POST>
    order deny,allow
    deny from 127.0.0.0
    deny from 192.168.0
    allow from all
    </Limit>
    --------------------------------------------------------------------------------


    and put the .htaccess file in the directory you want to block. The first deny line will block a particulary IP (127.0.0.0), the second deny line will block a range of IPs (192.168.0.0-192.168.0.255)

    However, it would be harder to decide what ranges of IP a country will use. I learn that blocking 80.0.0.0/8, 81.0.0.0/8, 82.0.0.0/8 will effectively block quite a few areas/countries in Europe, Italia most likely

    Use this at your own risk



    I also do it with PHP script........................
    Be Happy!

  8. #8
    Join Date
    Nov 2002
    Location
    CA, USA
    Posts
    1,903
    block a range of IPs is not a good idea since it will block out lots of access.
    ◊ James | sales@vnpixel.com |
    ◊ aim: vnpixel • msn: support@vnpixel.com • yahoo: vn_pixel
    ◊ http://www.vnpixel.com

  9. #9
    Join Date
    Jan 2002
    Location
    USA
    Posts
    720
    "Use this at your own risk "
    Be Happy!

  10. #10
    Join Date
    Feb 2003
    Location
    Potsdam, NY
    Posts
    648
    pico /etc/hosts.deny

    add

    ALL: IP

  11. #11
    Join Date
    Feb 2002
    Location
    Vestal, NY
    Posts
    1,381
    Are you root on Linux? Assuming you are, you can use:

    iptables -A INPUT -s IP.ADD.RESS.HERE -j DROP

    iptables is a kernel-level firewall. It will completely drop any packets server-wide coming from the IP.
    H4Y Technologies LLC .. Since 2001!!
    "Smarter, Cheaper, Faster" - SMB, Reseller, VPS, Dedicated, Colo hosting done right.

    ZERO PACKETLOSS, ZERO DOWNTIME Dedicated and Colo - USA: IA, CA, NC, OR, NV
    **http://h4y.us** **http://iwfhosting.net**
    Voice: (866)435-5642. *** askus at host4yourself d0t com

Posting Permissions

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