in reply to Re: Need to respond with a 403 status code?
in thread Need to respond with a 403 status code?

I had read the other thread, but didn't follow everything, given my knowledge level...

So if the header contains the 403 code, then a bot might hopefully interpret that correctly and go away (hopefully!)?

BTW, There are certain types of data errors that I want to reply with this fake reply, while for other 'normal' errors, I have a nice formatted page that I use, so determining which to send needs to occur within my CGI script, as I see it.

I'm also presuming that I could output a minimal "Access Forbidden" page with this response code, so a browser user would see that?
As the standard config error page (I believe) gives an email addr, which I don't want to provide in this case.
  • Comment on Re^2: Need to respond with a 403 status code?

Replies are listed 'Best First'.
Re^3: Need to respond with a 403 status code?
by grep (Monsignor) on Apr 19, 2007 at 17:23 UTC
    So if the header contains the 403 code, then a bot might hopefully interpret that correctly and go away (hopefully!)?

    One would think so, but at the very least you're not wasting bandwidth sending real content.

    grep
    1)Gain XP 2)??? 3)Profit