INSIGHTS
Cybersecurity

How to Set Up Web Filtering on FortiGate Firewall for Enhanced Network Protection

In this article
  1. Record the FortiOS and traffic context
  2. Create the web-filter profile
  3. Bind the profile to an enforcing policy
  4. Test the decision using controlled destinations
  5. Recognize visibility limits in encrypted and DNS traffic
  6. Failure cases and rollback
  7. Governance and boundaries

A FortiGate web-filter profile does not protect users merely because it exists in the configuration. Enforcement requires the right policy match, the appropriate inspection mode and an SSL/SSH inspection profile suited to the traffic. A useful web-filter deployment therefore begins with a testable traffic statement: from a defined client group, permit approved sites, block selected risky categories, and log the decision without breaking legitimate business applications.

Record the FortiOS and traffic context

This walkthrough uses FortiOS 7.6 documentation as the reference, not a claim about every supported release or hardware model. Before making a change, record the actual FortiOS build, VDOM, operating mode, license and FortiGuard rating reachability. Note whether the deployment is profile-based or policy-based NGFW, and whether the relevant firewall policy uses flow or proxy inspection. The available GUI fields, proxy features and certificate-handling choices can differ by version or policy mode.

Select a deliberately small pilot group rather than applying the profile to all users. Identify its source addresses, outgoing interface, destination rule and allowed business applications. Capture the current policy order, security profiles and log settings. If multiple policies could match, the engineer must establish which one actually handles the test client’s traffic before interpreting web-filter results.

Create the web-filter profile

In the referenced GUI, navigate to Security Profiles → Web Filter and create a named profile. Select the feature set appropriate to the firewall policy’s inspection mode, then choose FortiGuard category actions intentionally: Allow, Monitor, Block, or other actions available in that release. “Monitor” records observed traffic; it should not be reported as equivalent to preventing access. Use named exceptions only when the business requirement and decision-maker are known, not as a blanket bypass for a category that contains a legitimate site.

A static URL rule can help with a known domain, but wildcard matching has consequences. A rule intended to block one risky hostname should not accidentally block every service on a broad parent domain. Treat category ratings as maintained classification information, not universal proof that a site is safe or malicious. Record what should happen on rating-service errors and how false-positive reports will be reviewed.

Bind the profile to an enforcing policy

In Policy & Objects → Firewall Policy, edit the intended outbound policy or create a deliberately scoped pilot policy. Bind the named web-filter profile and an appropriate SSL/SSH inspection profile; keep the firewall policy source, destination, schedule and services aligned with the pilot group. Fortinet documentation states that the web-filter feature set must match the firewall policy’s inspection mode. A successfully saved web-filter profile without a matching, enabled enforcement policy is not an implemented control.

Certificate inspection and deep inspection answer different questions. Certificate inspection can use handshake or certificate information without inspecting all encrypted application content; deeper inspection decrypts eligible traffic and entails managed certificate trust, endpoint compatibility, privacy decisions and exception handling. If deep inspection is authorized, stage the CA trust deployment with managed endpoints first and document excluded sensitive categories. An untrusted interception certificate can cause business failures even while the filtering rule seems correctly configured.

Test the decision using controlled destinations

Use a handful of preapproved domains or non-sensitive test resources representing allowed, monitored and blocked outcomes. For each test, record client group, time, policy ID, web-filter profile, SSL mode, observed browser response and correlated FortiGate logs. Confirm that a blocked request was genuinely denied by the intended rule, not by unrelated DNS policy, endpoint filtering or a server outage. Conversely, a reachable page does not demonstrate that the desired inspection event or category classification occurred.

Pilot case Expected observable evidence
Approved business site Page loads and a matching policy/log entry identifies the pilot
Blocked test category Denial matches the configured action and log category
Monitor-only category Access continues, monitoring event appears where enabled
Known exception Only the approved destination/user scope bypasses the block
Encrypted web application Valid trust chain and no unintended app failure

Review logging destinations and retention. A firewall event may be forwarded to FortiAnalyzer or another logging destination, but successful event generation is distinct from successful delivery and retention. Capture the precise logging configuration, not an unsupported claim that all users’ traffic is searchable in a central dashboard.

Recognize visibility limits in encrypted and DNS traffic

A web-filter category decision often depends on hostname or certificate information visible under the chosen inspection mode. It should not be described as comprehensive content scanning when decryption is absent. Encrypted Client Hello, alternative DNS paths, application-specific tunnels and unsupported protocols may change what the firewall can classify. Identify those gaps in the pilot instead of calling every unknown flow “blocked” or “safe.” Test a known, approved HTTPS application under the chosen certificate mode and inspect the actual log fields that FortiOS records for the policy.

Make exception handling proportional: a business owner requests an exception, a security owner confirms the exact website and users, and the firewall team sets an expiration and retest date. If a newly classified domain is blocked in error, the exception should apply to that business case only. Recording a successful allow request after an exception is not enough; the team should also retest that unrelated risky traffic is still rejected.

Failure cases and rollback

If the correct users are unaffected, verify rule order, source addresses, inspection mode and actual matching policy before changing the category database. If an approved service breaks, inspect the category, certificate handling and DNS interactions separately. A test blocked by DNS filtering may not be fixed by a web-filter allow exception. Large-scale TLS failures suggest revisiting endpoint certificate trust and SSL inspection scope, not disabling inspection globally as a permanent workaround.

Prepare rollback before rollout: export the approved configuration or record the original named profile/policy bindings, obtain change approval and identify how to restore the previous state. Roll back on unexpected application failures, excess latency, business-service interruption or missing audit evidence. The threshold should be chosen against measured pilot baselines, not a universal throughput claim. Re-run the allowed and blocked cases after restoration to prove that service recovered and the security decision is understood.

Governance and boundaries

A category filter is only one layer. Users can reach applications through diverse protocols, endpoints and DNS paths, and site classification can lag behind new threats. Combine the web rule with appropriately scoped application control, endpoint protections, identity policies and incident review. Keep an owner for exceptions and a time to re-evaluate them. Do not claim that the presence of web filtering guarantees malware prevention or legal compliance.

This article describes a change procedure for a properly authorized environment; no firewall was configured or tested to produce it. Release-specific navigation and performance claims should be checked against Fortinet’s 7.6 web-filter documentation and the exact device build before any production rollout.

Filed under Cybersecurity