Skip to main content
jintrah_FTNT
Staff
Staff
August 29, 2017

Technical Tip: FortiWeb Web filter browser compatibility - Restricting browser choice for web applications

  • August 29, 2017
  • 0 replies
  • 6615 views
Description
This article describes how to use FortiWeb advanced protection rules and policies to restrict access to web applications from certain browsers or block unknown browsers/user-agents.

Solution
In FortiWeb restrict browsers by:
- Creating FortiWeb custom rules and policies to detect browsers based on http header 'User-Agent'. 
- Add the custom policies protection profiles

In the FortiWeb GUI Create custom policy
- Web Protection -> Advanced Protection -> Custom Policy.
This example prevents access to application from Firefox browser.




Note:  If 'Header Value Reverse Match' is turned ON, then access to application is only allowed from Firefox browsers.

CLI Config:

config waf custom-access rule
 edit "Block_UserAgent"
    set action alert_deny
    set severity Low
    config  http-header-filter
      edit 1
        set predefined-header user-agent
        set header-value Firefox
        set pre-header-type regular
      next
    end
 next
end

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.