Forum Discussion

PicassoMendez's avatar
PicassoMendez
Icon for Nimbostratus rankNimbostratus
Aug 13, 2013

URI redirect to Dead Zone

I have been asked to setup a rule to send traffic going to a particular URI to a dead zone. What would be the best way to accomplish that. I setup a pool that has no members and am using that currently.

 

2 Replies

  • can you define dead zone? Do you want to just discard the requests, log them, do something with them?
  • an option to just discard the packets would be:

    when HTTP_REQUEST {
      if { [HTTP::uri] eq "/particular_uri" } {
        discard
      }
    }
    

    or you could have some fun and return some html/text/javascript

    when HTTP_REQUEST {
      if { [HTTP::uri] eq "/particular_uri" } {
        HTTP::respond 200 ....
      }
    }