
10-15-2003, 01:07 PM
|
|
New 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
|
|
Web 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
|
|
Web Hosting Master
|
|
Join Date: Jun 2002
Location: Toronto, Ontario
Posts: 1,449
|
|
I believe you can use .htaccess to do a no access from a specified IP address.
__________________
Kaumil P.
|

10-15-2003, 01:21 PM
|
|
Web Hosting Master
|
|
Join Date: Jan 2002
Posts: 3,126
|
|
Re: How do I ban IP permanently!
Quote:
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.
|

10-15-2003, 01:24 PM
|
|
Build It Better!
|
|
Join Date: Dec 2002
Posts: 5,418
|
|
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
|
|
Web 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
|
|
Web Hosting Master
|
|
Join Date: Jan 2002
Location: USA
Posts: 669
|
|
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........................
__________________
No, it is not me!
No, I did not do it!
|

10-15-2003, 04:07 PM
|
|
Web 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
|
|
Web Hosting Master
|
|
Join Date: Jan 2002
Location: USA
Posts: 669
|
|
"Use this at your own risk "
__________________
No, it is not me!
No, I did not do it!
|

10-15-2003, 08:32 PM
|
|
Web Hosting Master
|
|
Join Date: Feb 2003
Location: Potsdam, NY
Posts: 646
|
|
pico /etc/hosts.deny
add
ALL: IP
|

10-15-2003, 11:24 PM
|
|
Nose runs, feet smell?
|
|
Join Date: Feb 2002
Location: Vestal, NY
Posts: 1,343
|
|
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 Check out our new picture gallery!
"Smarter, Cheaper, Faster" - SMB, Reseller, VDS, Dedicated, Colo hosting done right.
Los Angeles, CA (Peer 1) ZERO DOWNTIME and Scranton, PA 99.9% Uptime Dedicated and Colo.
**http://h4y.us** Voice: (866)435-5642. *** Email: askus at host4yourself d0t com
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
| Postbit Selector |
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|
| Login: |
|
|
| Advertisement: |
|
|
| Web Hosting News: |
|
|
|