You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Xibin Liu <xi...@hotmail.com> on 2009/12/23 15:40:18 UTC

[users@httpd] Change response status from 403 to 404

Hello,

 

Is there an easy way to change the response status in the http header from 403 to 404 by configuring the file "httpd.conf"? The reason for doing this is to prevent hackers from guessing forbidden web contents by looking for 403 in the http header of the response.

 

Thanks,

Xibin
 		 	   		  
_________________________________________________________________
Ready. Set. Get a great deal on Windows 7. See fantastic deals on Windows 7 now
http://go.microsoft.com/?linkid=9691818

Re: [users@httpd] Change response status from 403 to 404

Posted by Eric Covener <co...@gmail.com>.
On Wed, Dec 23, 2009 at 5:39 PM, Devraj Mukherjee <de...@gmail.com> wrote:
> Depending on which Version of Apache you are using, mod_headers may be
> of assistance
> http://httpd.apache.org/docs/2.0/mod/mod_headers.html

How would that help, and why would it depend on the version of Apache?

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Change response status from 403 to 404

Posted by Devraj Mukherjee <de...@gmail.com>.
Depending on which Version of Apache you are using, mod_headers may be
of assistance
http://httpd.apache.org/docs/2.0/mod/mod_headers.html

On Thu, Dec 24, 2009 at 1:40 AM, Xibin Liu <xi...@hotmail.com> wrote:
> Hello,
>
> Is there an easy way to change the response status in the http header from
> 403 to 404 by configuring the file "httpd.conf"? The reason for doing this
> is to prevent hackers from guessing forbidden web contents by looking for
> 403 in the http header of the response.
>
> Thanks,
> Xibin
>
> ________________________________
> Get a great deal on Windows 7 and see how it works the way you want. See the
> Windows 7 offers now.



-- 
"The secret impresses no-one, the trick you use it for is everything"
- Alfred Borden (The Prestiege)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Change response status from 403 to 404

Posted by Nick Kew <ni...@webthing.com>.
Xibin Liu wrote:
> Hello,
>  
> Is there an easy way to change the response status in the http header 
> from 403 to 404 by configuring the file "httpd.conf"?

I suggest you read
http://bahumbug.wordpress.com/2008/09/16/security-by-cookery/

If you still want to hack it, for example a .asis errordocument.

-- 
Nick Kew

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org