hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : How do I ban IP permanently!
Reply

Forum Jump

How do I ban IP permanently!

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 10-15-2003, 01:07 PM
Ingardj Ingardj is offline
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..



Sponsored Links
  #2  
Old 10-15-2003, 01:11 PM
jcwebii jcwebii is offline
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.

__________________
JC, www.webii.net
Premium Hosting Services Since 1996
Custom Development- www.webxess.net

  #3  
Old 10-15-2003, 01:12 PM
Kaumil Kaumil is offline
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.

Sponsored Links
  #4  
Old 10-15-2003, 01:21 PM
Incognito Incognito is offline
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.

  #5  
Old 10-15-2003, 01:24 PM
Mark_TVI Mark_TVI is offline
Build It Better!
 
Join Date: Dec 2002
Posts: 5,424
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  
Old 10-15-2003, 01:51 PM
VNPIXEL VNPIXEL is offline
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

  #7  
Old 10-15-2003, 02:49 PM
nvphone nvphone is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: USA
Posts: 704
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!

  #8  
Old 10-15-2003, 04:07 PM
VNPIXEL VNPIXEL is offline
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

  #9  
Old 10-15-2003, 06:01 PM
nvphone nvphone is offline
Web Hosting Master
 
Join Date: Jan 2002
Location: USA
Posts: 704
"Use this at your own risk "

__________________
No, it is not me!
No, I did not do it!

  #10  
Old 10-15-2003, 08:32 PM
2uantuM 2uantuM is offline
Web Hosting Master
 
Join Date: Feb 2003
Location: Potsdam, NY
Posts: 646
pico /etc/hosts.deny

add

ALL: IP

  #11  
Old 10-15-2003, 11:24 PM
John[H4Y] John[H4Y] is offline
Nose runs, feet smell?
 
Join Date: Feb 2002
Location: Vestal, NY
Posts: 1,355
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

Reply

Related posts from TheWhir.com
Title Type Date Posted
Canonical to Close Cloud Storage Service Ubuntu One Web Hosting News 2014-04-03 14:05:25
IPv6-Connected Users Double Since World IPv6 Launch Web Hosting News 2013-06-05 16:51:20
Web Host 1&1 Internet Adds Server Restoration Tool for Virtual Machines Web Hosting News 2012-11-07 15:45:16
IPv6 Co-Inventor Bob Hinden Talks World IPv6 Launch Web Hosting News 2012-06-06 12:29:34
Web Hosts, Internet Industry Prepare for World IPv6 Launch Web Hosting News 2012-05-23 17:16:15


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?