Forum Discussion
hooleylist
Mar 19, 2008Cirrostratus
Actually, I think I misread your request. You want to rewrite the user-agent header to a static value? If so, you can use something like this:
when HTTP_REQUEST {
if {$something == 1}{
Replace the User-Agent header (inserting it if it doesn't exist already)
HTTP::header replace "User-Agent" "x-bot"
}
}
Aaron