CodeShare
Have some code. Share some code.
cancel
Showing results for 
Search instead for 
Did you mean: 
Custom Alert Banner

Problem this snippet solves:

This snippet gets rid of those annoying bot pests

How to use this snippet:

Copy and share

Code :

# ---- String data group ----
02
ltm data-group internal /Common/bots {
03
    records {
04
        fast { }
05
        googlebot { }
06
        msnbot { }
07
        scooter { }
08
        slurp { }
09
        teoma { }
10
    }
11
    type string
12
}
13
 
14
 
15
# ---- iRule ----
16
when HTTP_REQUEST {
17
  if { [class match [string tolower [HTTP::header User-Agent]] contains bots] } {
18
    pool slow_webbot_pool
19
  } else {
20
    pool default_pool
21
  }
22
}
Version history
Last update:
‎19-Aug-2017 00:11
Updated by:
Contributors