Web Hosting Talk







View Full Version : Banning an IP from going to your site


SirKC
07-22-2002, 05:58 PM
How can I ban someone's IP so that when he/she visits my site this message would appear in his/her screen:

HTTP Error 403
403.6 Forbidden: IP address rejected

This error is caused when the server has a list of IP addresses that are not allowed to access the site, and the IP address you are using is in this list.

Please contact the Web server's administrator if the problem persists.

esdjco
07-22-2002, 07:17 PM
.htaccess deny

http://www.javascriptkit.com/howto/htaccess5.shtml

clocker1996
07-22-2002, 08:22 PM
ipchains
iptables
.htaccess

SirKC
07-23-2002, 12:55 AM
sorry clocker what? how do i do ipchains and iptables?

Rich2k
07-23-2002, 04:44 AM
It is a linux firewall... so you could only really make use of it if you were on a dedicated server.

1upromo
07-23-2002, 07:41 AM
Your site suspended/deleted from your hosting company possible.

Have nice day
:)

esdjco
07-23-2002, 07:43 AM
1upromo,
SirKC is asking how to block visitors to his site, not why he is receiving an error. He is trying to generate an error for a banned user.

anon-e-mouse
07-23-2002, 07:48 AM
1upromo has suddenly started inane responses in a couple of forums the last 2 days AKA as site promotion? :mad:

1upromo
07-23-2002, 07:56 AM
I wonder, :)

these messages are only my opinions.

barrywien
07-23-2002, 08:41 AM
Trying to boost his post count i think...:angry:

JennyAnn
07-23-2002, 12:16 PM
Thanks for posting that esdjco that helped me too.

BarrySDCA
07-25-2002, 01:05 AM
Originally posted by SirKC
How can I ban someone's IP so that when he/she visits my site this message would appear in his/her screen:

HTTP Error 403
403.6 Forbidden: IP address rejected

This error is caused when the server has a list of IP addresses that are not allowed to access the site, and the IP address you are using is in this list.

Please contact the Web server's administrator if the problem persists.

What kind of web server are you using? Do you have access to your router(s) configuration? I prefer to block these annoying people at our gateways.

agiantdwarf
07-25-2002, 01:14 AM
You could do it through PHP.

esdjco
07-25-2002, 03:04 AM
No problem JennyAnn. :) .htaccess rocks!