{"id":18977,"date":"2026-10-22T17:00:14","date_gmt":"2026-10-22T14:00:14","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/what-is-waf-web-application-firewall\/"},"modified":"2026-10-22T17:00:17","modified_gmt":"2026-10-22T14:00:17","password":"","slug":"what-is-waf-web-application-firewall","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/what-is-waf-web-application-firewall\/","title":{"rendered":"What Is a Web Application Firewall (WAF) and How Does It Protect Your Site?"},"content":{"rendered":"<div class=\"hkb\" dir=\"ltr\">\n<div class=\"hkb-tldr\"><b>In short<\/b>A web application firewall (WAF) is a layer that inspects every request to your site and compares it with rules that recognise attacks such as <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/sql-injection\/\">SQL injection<\/a>, <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/xss-cross-site-scripting\/\">XSS<\/a> and malicious uploads. Clean requests pass, and malicious ones are rejected before reaching WordPress or your code. It protects you even from a flaw in a plugin you have not updated yet, but it does not replace updating.<\/div>\n<figure class=\"hkb-fig\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.hyyat.com\/zasogooh\/2026\/10\/hkb-waf.webp\" alt=\"Web application firewall: clean requests pass while malicious ones are stopped by a wall before the server\" width=\"1200\" height=\"630\" loading=\"lazy\" \/><\/figure>\n<h2>How is it different from a regular firewall?<\/h2>\n<div class=\"hkb-tbl\">\n<table>\n<thead>\n<tr>\n<th><\/th>\n<th>Regular firewall<\/th>\n<th>Web application firewall (WAF)<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>What it inspects<\/td>\n<td>Addresses, ports and connections<\/td>\n<td>The content of HTTP requests<\/td>\n<\/tr>\n<tr>\n<td>Example<\/td>\n<td>Blocks outside access to the database port<\/td>\n<td>Blocks a request with SQL injection code in a search box<\/td>\n<\/tr>\n<tr>\n<td>Tool on our servers<\/td>\n<td><strong>CSF<\/strong><\/td>\n<td><strong>ModSecurity<\/strong> and <strong>Imunify360<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<h2>How does it work?<\/h2>\n<ol class=\"hkb-steps\">\n<li><b>A request arrives:<\/b> A visitor opens a page, submits a form or uploads a file.<\/li>\n<li><b>It is checked against rules:<\/b> The firewall compares the URL and submitted data with rules for thousands of attack patterns.<\/li>\n<li><b>Allowed or rejected:<\/b> A clean request continues to the site; a malicious one is rejected with a 403 message.<\/li>\n<li><b>Logged:<\/b> Every rejected request is logged, and repeated attacks from one address may get it blocked.<\/li>\n<\/ol>\n<h2>What does it stop?<\/h2>\n<div class=\"hkb-cards\">\n<div class=\"hkb-card\"><i>1<\/i><b>SQL injection<\/b><span>Database commands inside fields and URLs.<\/span><\/div>\n<div class=\"hkb-card\"><i>2<\/i><b>XSS<\/b><span>JavaScript hidden in requests.<\/span><\/div>\n<div class=\"hkb-card\"><i>3<\/i><b>Malicious uploads<\/b><span>Such as a <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/hacking-tools-c99-shell\/\">web shell<\/a>.<\/span><\/div>\n<div class=\"hkb-card\"><i>4<\/i><b>Known exploits<\/b><span>In plugins and themes not yet updated; this is called \u201cvirtual patching\u201d.<\/span><\/div>\n<\/div>\n<h2>What if a clean request is blocked by mistake?<\/h2>\n<p>Sometimes a real request looks like an attack, such as saving a post that contains code. You see a 403 error when saving. Open a ticket with the URL and the time, and we will exclude the rule for your site only. Also read <a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/modsecurity-cpanel\/\">managing ModSecurity<\/a>.<\/p>\n<div class=\"hkb-note w\"><b>A WAF does not replace updates:<\/b> it is an important extra layer, but the flaw is truly closed by updating the plugin or fixing the code.<\/div>\n<div class=\"hkb-hh\">\n<h2>How Hyyat Host protects your site<\/h2>\n<ul>\n<li><strong>ModSecurity<\/strong> rules run on our hosting servers and inspect every request.<\/li>\n<li><strong>Imunify360<\/strong> adds rules tailored to WordPress and popular plugins, and blocks attacking addresses.<\/li>\n<li>You can add the <strong>Cloudflare<\/strong> firewall in front of your site as another layer.<\/li>\n<\/ul>\n<p style=\"margin:10px 0 0\">Learn more about <a href=\"https:\/\/www.hyyat.com\/en\/waf\/\">the Hyyat Host web application firewall service<\/a>.<\/p>\n<\/div>\n<h2>Frequently asked questions<\/h2>\n<div class=\"hkb-faq\">\n<details>\n<summary>Do I need a WordPress firewall plugin if the server is protected?<\/summary>\n<p>It is not essential, but it adds login protection and alerts. The server firewall matters most because it runs before WordPress and also saves resources.<\/p>\n<\/details>\n<details>\n<summary>Does a WAF slow my site?<\/summary>\n<p>Inspection is very fast, and its effect on speed is usually not noticeable.<\/p>\n<\/details>\n<details>\n<summary>I got a 403 error when saving a post. Why?<\/summary>\n<p>Usually a firewall rule thought the content was an attack. Open a ticket with the URL and the time, and we will fix it.<\/p>\n<\/details>\n<\/div>\n<div class=\"hkb-rel\"><b>Related guides<\/b><\/p>\n<ul>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/sql-injection\/\">What Is SQL Injection and How to Protect Your Website Database<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/xss-cross-site-scripting\/\">What Is an XSS Attack? Cross-Site Scripting Explained and How to Prevent It<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/modsecurity-cpanel\/\">How to Manage ModSecurity in cPanel<\/a><\/li>\n<li><a href=\"https:\/\/www.hyyat.com\/en\/knowledgebase\/ddos-attacks-protection\/\">What Are DDoS Attacks? Types, Warning Signs and How to Protect Your Website<\/a><\/li>\n<\/ul>\n<p><a href=\"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/\">All website security guides \u2192<\/a><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>In shortA web application firewall (WAF) is a layer that inspects every request to your site and compares it with rules that recognise attacks such as SQL injection, XSS and malicious uploads. Clean requests pass, and malicious ones are rejected before reaching WordPress or your code. It protects you even from a flaw in a [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2744],"doc_tag":[],"class_list":["post-18977","docs","type-docs","status-publish","hentry","doc_category-website-protection"],"year_month":"2026-10","word_count":486,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"Website Security","term_url":"https:\/\/www.hyyat.com\/en\/kb\/website-protection\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18977","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18977"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18977\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18977"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18977"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18977"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}