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