Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Nilesh Govindarajan
On Mon, Jul 26, 2010 at 11:24 AM, Bennett Haselton wrote: > At 10:32 PM 7/25/2010, you wrote: >> >> On Sat, Jul 24, 2010 at 5:40 AM, Bennett Haselton >> wrote: >> > I'm trying to ban certain IPs from visiting my site, so that they >> > instead >> > see a message saying "Your IP has been banned, e

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
At 10:32 PM 7/25/2010, you wrote: On Sat, Jul 24, 2010 at 5:40 AM, Bennett Haselton wrote: > I'm trying to ban certain IPs from visiting my site, so that they instead > see a message saying "Your IP has been banned, email me if you think this is > an error." Â I've *almost* got it working --

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
Thanks, I had actually just realized that might work :) Yes, putting this into .htaccess does the trick: *** allow from all ErrorDocument 403 /banned_ip.php order deny,allow deny from 71.112.32.149 *** Now the real question is why, for http requests, it allowed me to view the banned_ip.php e

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
Thanks, I had actually just realized that might work :) Yes, putting this into .htaccess does the trick: *** allow from all ErrorDocument 403 /banned_ip.php order deny,allow deny from 71.112.32.149 *** Now the real question is why, for http requests, it allowed me to view the banned_ip.php e

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Nilesh Govindarajan
On Sat, Jul 24, 2010 at 5:40 AM, Bennett Haselton wrote: > I'm trying to ban certain IPs from visiting my site, so that they instead > see a message saying "Your IP has been banned, email me if you think this is > an error."  I've *almost* got it working -- when people visit URLs like > http://209

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Tapas Mishra
Try this http://www.maxmind.com/app/mod_geoip http://www.munkyonline.com/articles/htaccess-301-redirects-for-ip-ranges.html

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Eric Covener
> 2) in any case, if that is the cause, what would be the solution? You put a section inside of a section and allow all IP addresses to access it (order deny,allow ; allow from all) -- Eric Covener cove...@gmail.com - The off

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
At 05:30 PM 7/25/2010, Eric Covener wrote: > A little more potentially useful information: > The 403 forbidden message that comes up when I try to access an https:// URL > also says: > "Additionally, a 403 Forbidden error was encountered while trying to use an > ErrorDocument to handle the re

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
At 05:29 PM 7/25/2010, Eric Covener wrote: On Sun, Jul 25, 2010 at 8:23 PM, Bennett Haselton wrote: > At 05:08 PM 7/25/2010, Eric Covener wrote: >> >> On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton >> wrote: >> > By the way, I posted this question on vworker.com (where you can post >> >

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Eric Covener
> A little more potentially useful information: > The 403 forbidden message that comes up when I try to access an https:// URL > also says: > "Additionally, a 403 Forbidden error was encountered while trying to use an > ErrorDocument to handle the request." > > So apparently Apache is *applying* th

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Eric Covener
On Sun, Jul 25, 2010 at 8:23 PM, Bennett Haselton wrote: > At 05:08 PM 7/25/2010, Eric Covener wrote: >> >> On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton >> wrote: >> > By the way, I posted this question on vworker.com (where you can post >> > "work >> > items" for contractors to bid on, alth

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
At 07:38 PM 7/24/2010, Bennett Haselton wrote: In my httpd.conf file I added the directive (at the bottom of the file, so at the top level): ErrorDocument 403 /banned_ip.php That works when I go to a file that I've set chmod to 000: http://209.160.28.154/forbidden.txt (of course the "banned I

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
At 05:08 PM 7/25/2010, Eric Covener wrote: On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton wrote: > By the way, I posted this question on vworker.com (where you can post "work > items" for contractors to bid on, although I more often use it to post > questions and then people submit bids for

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Eric Covener
On Sun, Jul 25, 2010 at 6:55 PM, Bennett Haselton wrote: > By the way, I posted this question on vworker.com (where you can post "work > items" for contractors to bid on, although I more often use it to post > questions and then people submit bids for telling me the answer), and > someone told me

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Bennett Haselton
By the way, I posted this question on vworker.com (where you can post "work items" for contractors to bid on, although I more often use it to post questions and then people submit bids for telling me the answer), and someone told me the answer for $20. The answer, it turns out, is the /etc/htt

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Bennett Haselton
At 03:31 AM 7/25/2010, Simone Caruso wrote: How do I make the ErrorDocument directive apply to my SSL site as well? I've tried inserting "ErrorDocument 403 /banned_ip.php" into ssl.conf at the top level, and into ssl.conf inside the tags, but none of that worked. -Bennett (main conf): Error

[us...@httpd] [ANNOUNCEMENT] Apache HTTP Server 2.2.16 Released

2010-07-25 Thread Paul Querna
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Apache HTTP Server (httpd) 2.2.16 Released The Apache Software Foundation and the Apache HTTP Server Project are pleased to announce the release and immediate availability of version 2.2.16 of the Apache HTTP Server ("httpd"). This vers

Re: [us...@httpd] trying to ban IPs using htaccess - not working

2010-07-25 Thread Daniel Reinhardt
-Original Message- From: Bennett Haselton Sent: 24 July, 2010 0:10 To: users@httpd.apache.org Subject: [us...@httpd] trying to ban IPs using htaccess - not working I'm trying to ban certain IPs from visiting my site, so that they instead see a message saying "Your IP has been banned,

Re: [us...@httpd] problems with htacces and includes

2010-07-25 Thread Bennett Haselton
My understanding is that the cause is probably that in your httpd.conf file, in between the lines saying and and in between the lines saying and in both places you probably have the line "AllowOverride None". As long as this is in effect, directories below /var/www/html cannot have an .h

Re: [us...@httpd] problems with htacces and includes

2010-07-25 Thread Joost de Heer
On 07/25/2010 08:02 PM, Teun wrote: Hi, I have problems with htaccess and server side inludes. If I try a secure websitefolder with a .htaccess file and a .htpasswd file. There will not ask for a user/passwd to loging in. Do you have the proper AllowOverride set? Joost --

[us...@httpd] problems with htacces and includes

2010-07-25 Thread Teun
Hi, I have problems with htaccess and server side inludes. If I try a secure websitefolder with a .htaccess file and a .htpasswd file. There will not ask for a user/passwd to loging in. It just shows me de folder not secured. I have this problem also on an other linux computer. It was not possib

Re: [us...@httpd] how to make ErrorDocument apply to https:// site as well?

2010-07-25 Thread Simone Caruso
How do I make the ErrorDocument directive apply to my SSL site as well? I've tried inserting "ErrorDocument 403 /banned_ip.php" into ssl.conf at the top level, and into ssl.conf inside the tags, but none of that worked. -Bennett (main conf): ErrorDocument 403 /403.html ErrorDocument 404 /40