cancel
Showing results for 
Search instead for 
Did you mean: 

Webgateway - Basic string rule question

Jump to solution

Hello.

I have a block rule. The webgateway gets back from the Header Authorization the value "Basic ####"

I want to remove the "Basic" word/expression from the Header Authorization value because the webgateway cant translate the base64 into string if the value has a "basic" word in it.

How can i do that? (remove the basic word from the value)

thanks,

i attach a screenshot to this question:

1 Solution

Accepted Solutions
btlyric
Level 12
Report Inappropriate Content
Message 2 of 4

Re: Webgateway - Basic string rule question

Jump to solution

You should be able to do something like:

String.Base64DecodeAsText (String.ReplaceFirstMatch (Header.Get ("Authorization"), regex(Basic\ (.*)), "\1"))

3 Replies
btlyric
Level 12
Report Inappropriate Content
Message 2 of 4

Re: Webgateway - Basic string rule question

Jump to solution

You should be able to do something like:

String.Base64DecodeAsText (String.ReplaceFirstMatch (Header.Get ("Authorization"), regex(Basic\ (.*)), "\1"))

Re: Webgateway - Basic string rule question

Jump to solution

Thank you. The rule had to be modified a little bit but it helped a lot.

McAfee Employee sbluemel
McAfee Employee
Report Inappropriate Content
Message 4 of 4

Re: Webgateway - Basic string rule question

Jump to solution

Hello,

MWG can decode such values. Please see for all steps:

Regards,

Stefan

More McAfee Tools to Help You
  • How-to: Endpoint Removal Tool
  • Support: Endpoint Security
  • Visit: Business Service Portal
  • More: Search Knowledge Articles
  • ePolicy Orchestrator Support

    • Download the new ePolicy Orchestrator (ePO) Support Center Extension which simplifies ePO management and provides support resources directly in the console. Learn more about ePO Support Center