Results 1 to 11 of 11
Thread: How do I ban IP permanently!
-
10-15-2003, 01:07 PM #1New Member
- 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..
-
10-15-2003, 01:11 PM #2Web Hosting Guru
- 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.
-
10-15-2003, 01:12 PM #3Web Hosting Master
- 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.
-
10-15-2003, 01:21 PM #4Web Hosting Master
- Join Date
- Jan 2002
- Posts
- 3,126
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..
In addition to banning, depending on the definition of messing around, sounds like you need to do some other security upgrades.
-
10-15-2003, 01:24 PM #5Build It Better!
- Join Date
- Dec 2002
- Posts
- 5,448
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...
-
10-15-2003, 01:51 PM #6Web Hosting Master
- 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
-
10-15-2003, 02:49 PM #7Web Hosting Master
- 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!
-
10-15-2003, 04:07 PM #8Web Hosting Master
- 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
-
10-15-2003, 06:01 PM #9Web Hosting Master
- Join Date
- Jan 2002
- Location
- USA
- Posts
- 720
"Use this at your own risk "
Be Happy!
-
10-15-2003, 08:32 PM #10Web Hosting Master
- Join Date
- Feb 2003
- Location
- Potsdam, NY
- Posts
- 648
pico /etc/hosts.deny
add
ALL: IP
-
10-15-2003, 11:24 PM #11Web Hosting Master
- 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