F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

ChrisMaKi_15830's avatar
ChrisMaKi_15830
Icon for Nimbostratus rankNimbostratus
Mar 06, 2008

set lower case to cookie name

Hi guys,

 

I'm a newbee to this forum and to irules in fact.

 

I need to block a cookie to avoid manipulation of our cms. Let's call this cookie "badc"

 

Now my code to do this looks like this:

 

 

when HTTP_REQUEST {

 

if { [HTTP::cookie exists "badc"] } {

 

HTTP::cookie remove "badc"

 

}

 

}

 

 

Now this will work fine but I have a serious mistake in this code. How can I set the lowercase thing to avoid somebody using a cookie called "BadC" or similar.

 

 

Thanks for the help!

 

Chris

 

 

 

 

No RepliesBe the first to reply