Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Interchange: users

Interchange and IPs

 

 

Interchange users RSS feed   Index | Next | Previous | View Threaded


chip_wood at comcast

Oct 13, 2009, 2:08 AM

Post #1 of 5 (963 views)
Permalink
Interchange and IPs

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

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


rayonnet at hotmail

Oct 13, 2009, 2:26 AM

Post #2 of 5 (890 views)
Permalink
Re: Interchange and IPs [In reply to]

----------------------------------------
> From: chip_wood [at] comcast
> Date: Tue, 13 Oct 2009 02:08:12 -0700
> To: interchange-users [at] icdevgroup
> Subject: [ic] Interchange and IPs
>
> 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
>
> _______________________________________________
> interchange-users mailing list
> interchange-users [at] icdevgroup
> http://www.icdevgroup.org/mailman/listinfo/interchange-users


try iptables. it is a firewall with tons of features. Thank you.

Raymond
_________________________________________________________________
Your E-mail and More On-the-Go. Get Windows Live Hotmail Free.
http://clk.atdmt.com/GBL/go/171222985/direct/01/
_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


mike at perusion

Oct 13, 2009, 5:58 AM

Post #3 of 5 (885 views)
Permalink
Re: Interchange and IPs [In reply to]

Quoting Raymond Cheng (rayonnet [at] hotmail):
>
>
>
> ----------------------------------------
> > From: chip_wood [at] comcast
> > Date: Tue, 13 Oct 2009 02:08:12 -0700
> > To: interchange-users [at] icdevgroup
> > Subject: [ic] Interchange and IPs
> >
> > 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?
> >
>
> try iptables. it is a firewall with tons of features. Thank you.
>

Yes indeed.

Here is a little shell script pair named lockout/allowin. The
lockout script:

#!/bin/sh

# usage: lockout <ip-address-or-block>

for i in $*
do
/sbin/iptables -I INPUT -s $i -j DROP
done

### end lockout ###

The allowin script:

#!/bin/sh

# usage: allowin <ip-address-or-block>

for i in $*
do
/sbin/iptables -D INPUT -s $i -j DROP
done

### end allowin ###

--
Mike Heins
Perusion -- Expert Interchange Consulting http://www.perusion.com/
phone +1.765.328.4479 <mike [at] perusion>

Research is what I'm doing when I don't know what I'm doing.
-- Wernher Von Braun

_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


icdev at mrlock

Oct 13, 2009, 6:02 AM

Post #4 of 5 (903 views)
Permalink
Re: Interchange and IPs [In reply to]

>> Subject: [ic] Interchange and IPs
>>
>> 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
>>
>> _______________________________________________
>
> try iptables. it is a firewall with tons of features. Thank you.
>
> Raymond

You might also look at shorewall - it has many nice features to drive
iptables..... blacklists etc...

Steve


_______________________________________________
interchange-users mailing list
interchange-users [at] icdevgroup
http://www.icdevgroup.org/mailman/listinfo/interchange-users


mvu at carlc

Oct 13, 2009, 6:47 AM

Post #5 of 5 (882 views)
Permalink
Re: Interchange and IPs [In reply to]

> 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

Interchange users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.