gertiebeth
02-11-2002, 11:27 PM
Is there a way to use a .htaccess file to ban one particular ISP address (meaning a single PERSON, not everyone who uses the service) from viewing a website?
![]() | View Full Version : Ban by ISP? gertiebeth 02-11-2002, 11:27 PM Is there a way to use a .htaccess file to ban one particular ISP address (meaning a single PERSON, not everyone who uses the service) from viewing a website? Christopher 02-11-2002, 11:33 PM I think this depends on how they access their service. If it is a dial up connection, they probably have a dynamic ip address, which would change everytime they sign off and then sign back on. That would make it impossible (as far as I know) to block just that single user. If they have dsl or something like that they might have an ip address assigned to them, it would not change so you could block that ip, Chris gertiebeth 02-11-2002, 11:37 PM Originally posted by Christopher I think this depends on how they access their service. If it is a dial up connection, they probably have a dynamic ip address, which would change everytime they sign off and then sign back on. That would make it impossible (as far as I know) to block just that single user. If they have dsl or something like that they might have an ip address assigned to them, it would not change so you could block that ip, Chris Thanks Chris. All I know is this person's IP address from my message boards which is 12.248.47.20. A whois search turns up AT&T as the provider. Does it help to know that everytime this person has accessed the boards the IP address has been the same? Christopher 02-12-2002, 12:03 AM May just work then. Here is what I have used to block an ip with when I was having trouble with a user: <Limit GET> order deny,allow deny from address-goes-here </Limit> just put it into the .htaccess I am not an .htaccess expert though, so test :) Chris gertiebeth 02-12-2002, 12:06 AM Originally posted by Christopher May just work then. Here is what I have used to block an ip with when I was having trouble with a user: <Limit GET> order deny,allow deny from address-goes-here </Limit> just put it into the .htaccess I am not an .htaccess expert though, so test :) Chris Thanks Chris! I'll give it a try. :D cyrusTvirus 02-12-2002, 05:55 PM Did you consider adding this IP to your hosts.deny file ?? This means the whole server is vanished for that specific IP adres. You can also configure IPCHAINS to add suckups to the hosts.deny automatically. HTH Robbert Cephren 02-18-2002, 01:35 AM Yeah th hosts.deny file is the best place to put troublesome users. but nevertheless IP banning is quite useless on all networks when the user knows hot to bounce off his connection from other networks. gertiebeth 02-18-2002, 03:28 PM Originally posted by cyrusTvirus Did you consider adding this IP to your hosts.deny file ?? This means the whole server is vanished for that specific IP adres. You can also configure IPCHAINS to add suckups to the hosts.deny automatically. HTH Robbert Path and telnet question... Path: where exactly is hosts.deny? Telnet: What is the command to "find" a certian file of folder... I thought it was "goto" Thanks! :) gertiebeth 02-18-2002, 03:31 PM Originally posted by gertiebeth Path and telnet question... Path: where exactly is hosts.deny? Telnet: What is the command to "find" a certian file of folder... I thought it was "goto" Thanks! :) Just found hosts.deny in etc/hosts.deny! <sheepish grin> Now, how exactly do I write this, to block 2 IP address? # # hosts.deny This file describes the names of the hosts which are # *not* allowed to use the local INET services, as decided # by the '/usr/sbin/tcpd' server. # |