
mvu at carlc
Oct 13, 2009, 6:47 AM
Post #5 of 5
(881 views)
Permalink
|
> Message: 4 > Date: Tue, 13 Oct 2009 02:08:12 -0700 > From: Charles Wood <chip_wood [at] comcast> > Subject: [ic] Interchange and IPs > To: interchange-users [at] icdevgroup > Message-ID: <C14B6CD0-89A5-4007-B79C-257551B335EF [at] comcast> > Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes > > A friend of mine runs a website using Interchange and > unfortunately we would like to ban a few IP addresses from > accessing the website. I am not familiar with Interchange > other than the few functions I use for moderating a forum. Is > it possible to ban IP addresses using Interchange or should I > look into programs specifically made to do this? > > Thank you, > Chip Wood Chip, It would be easier to use Apache to block them. Depending on how you've setup interchange, you can either block them using a .htaccess file in your main directory (and/or CGI directory) or inside of the apache httpd.conf file. A .htaccess file in your home directory would look like this: <Limit GET> order allow,deny allow from all # # Block the following groups of IP blocks... # deny from 61.14.0.0/18 deny from 61.14.128.0/19 (more "deny from" lines until done) deny from 222.249.176.0/20 deny from 222.249.192.0/18 # </Limit> ErrorDocument 403 http://www.carlc.com The ErrorDocument will send them where you want them go to instead... You can also put this in your Apache httpd.conf file, if you want, and it's similar but check with Apache.org to get it correct inside of httpd.conf. Remember, you will have to do this for your CGI directory as well as your regular file areas to completely protect Interchange. Carl C. http://www.carlc.com Providing Interchange websites and hosting to the community since 1999 _______________________________________________ interchange-users mailing list interchange-users [at] icdevgroup http://www.icdevgroup.org/mailman/listinfo/interchange-users
|