Forum Moderators: phranque

Message Too Old, No Replies

How to Bounce Forbidden Requests

         

carfac

12:07 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi:

We allknow the last line of the ReWrite list of banned IP's or Agents... basically, it returns a 403.

There are one or two sites I don't even want to send a 403 to...

is there a modification to:

RewriteRule ^/.* - [F,L]

That would just return nothing? Just ignore the request, not even bother replying? Play dead?

thanks!

dave

Key_Master

12:11 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Send them to about:blank

bird

12:22 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The "-" replacement just doesn't replace anything, the request is served normally. What I do is to just substitute an empty document. The about:blank trick only works for human operated browsers, rogue spiders will start looking for a document of that name on your site when they see such a redirect.

Slade

1:53 am on Sep 24, 2002 (gmt 0)

10+ Year Member



[localhost...]
?

carfac

3:32 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Slade:

I THINK that worked....

I tried it on wannabrowser, and I got no response, but I think there was a header returned...

dave

jdMorgan

4:37 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



carfac,

I think I remember seeing a script (or a discussion of a script) here on WebmasterWorld that just did a "die" under certain conditions, causing the http session to time out. Unfortunately, I can't remember when it was, or the context of the discussion... Anybody else remember something like that?

Jim

carfac

4:53 am on Sep 24, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi jdMorgan:

Thanks agin for your previous tutorial on Regular expressions- I learned a LOT!

Yeah, something like that would be wonderfull... especially if it put a big time load on THEM! The http://localhost looks like it still responds, but just with nothing. I was hoping to respond more like "no one is home, go away!" and not even answer the door... if you know what I mean...

dave