Web Application Firewall: How to Protect Your Site in 2026
By Rafirit Station Editorial Team · Updated 2026 · ⏱ 18 min read
Web application firewall (WAF) is your first line of defense against the 6,300+ attacks that hit the average Dhaka-based website every month. According to Gartner, 40% of all web application attacks target vulnerabilities that a properly configured WAF could have blocked.
In 2026, with Bkash, Nagad, and digital banking now ubiquitous in Bangladesh, hackers are no longer targeting global giants — they’re targeting local WooCommerce stores, WordPress blogs, and custom-built web apps in Gulshan and Banani. The National Cyber Security Centre reported a 300% increase in web attacks against Bangladeshi domains in 2025. Every day we see clients who believe their small site is invisible — until their checkout page is defaced or their customer database is sold on Telegram.
The cost of inaction is staggering. We recently spoke with a Mirpur-based ecommerce owner who lost ৳1,200,000 in a single weekend because a botnet flooded his checkout page — no WAF in sight. Add forensic cleanup, legal fees, customer compensation, and reputation damage, and the real cost is closer to ৳3,500,000. In contrast, a robust WAF costs less than ৳15,000 per year for most local websites. That’s a 99% cost saving against a single breach.
By the end of this guide, you will know exactly how to choose, deploy, tune, and monitor a WAF — even if you’ve never touched a security tool before. No jargon, no fluff, just actionable steps we’ve used for clients from Dhanmondi to Uttara. You’ll also learn how to avoid false positives, handle DDoS attacks, and integrate your WAF with WordPress, WooCommerce, Shopify, and custom Laravel apps.
📚 External Resources (Bookmark These)
- OWASP Top 10 2025 – The definitive web application security list every WAF should cover.
- Cloudflare Learning Center – Beginner-friendly WAF explainers and use cases.
- ModSecurity – Open Source WAF – The classic self-hosted WAF engine and rule sets.
- Sucuri Website Firewall – Popular cloud WAF for WordPress, with free malware scanning.
- AWS WAF – Cloud WAF for AWS-hosted sites, integrates with CloudFront and ALB.
- Imperva OWASP Top 10 – Detailed explanation of each vulnerability with examples.
- Acunetix OWASP Top 10 Table – Quick-reference table of attacks and fixes.
- Google Security Blog – Latest security research and industry insights.
- HubSpot Blog on Website Security – Practical marketing-friendly security checklists.
- Neil Patel WAF Guide – A plain-language introduction to WAFs for business owners.
🔗 Rafirit Station Services
- Web Development — Custom websites
- Web Development Dhaka — Local dev team
- UI/UX Design — Interfaces users love
- Ecommerce Solutions — Shopify & WooCommerce
- CRO Services — Websites that convert
- App Development — iOS & Android
- Packages & Pricing
- Rafirit Station Bangladesh — Digital Agency
- Rafirit Station Dhaka — Full-Service Agency
🚀 Stop Hackers from Stealing Your Customers’ Data
For local business owners in Dhaka who want to lock down their WooCommerce, Shopify, or custom web app.
🗓 Book Your Free Strategy Call →
No commitment · 60-minute session · Bangladeshi clients welcome
Phase 1: Choose the Right WAF for Your Dhaka Website
Before you install anything, you need to pick a WAF that matches your hosting, budget, and technical skills. In 2026, Bangladeshi businesses have more options than ever — from free open-source tools to enterprise-grade cloud services. Here’s how we guide our clients in Dhaka through the selection process. The choice directly affects not just security, but also your site’s speed, uptime, and monthly costs. We’ll help you avoid the three biggest mistakes we see: buying a Ferrari when a bicycle works, installing a toy WAF that gives false confidence, and ignoring WAF logs entirely.
Tactic 1.1: Audit Your Hosting and Stack
Why this works: WAFs integrate at different levels — DNS, reverse proxy, or server module. If you’re on shared hosting, cloud WAFs are easier. If you have a VPS in Dhaka, you can install ModSecurity. A mismatch here causes 60% of deployment failures we encounter.
Exactly how to do it:
- List your current hosting provider (e.g., BDIX-based server or AWS Singapore).
- Identify your CMS or framework — WordPress, WooCommerce, Laravel, or custom PHP.
- Check if your hosting panel (cPanel) supports ModSecurity directly.
- Note whether you have SSH/root access — needed for on-premise WAF.
- Assess your expected traffic: under 10,000 visitors/month? Start small.
- List critical endpoints: payment pages, API routes, admin login.
Pro template: For a typical WooCommerce site on cPanel, we recommend Sucuri or Cloudflare. For a Laravel app on a VPS, ModSecurity or AWS WAF.
📊 Expected results: In 60 minutes, you’ll know exactly which WAF type you need. 80% of our Dhaka clients need a cloud DNS-based WAF due to shared hosting constraints.
Tactic 1.2: Compare Cloud WAF vs. On-Premise vs. Open-Source
Why this works: Each option has different risk profiles. Cloud WAFs like Cloudflare and Sucuri handle DDoS at the edge, while ModSecurity gives you rule-level control but requires maintenance. Choosing based on your team’s DevOps ability prevents a security tool from becoming a headache.
Exactly how to do it:
- Write down your top 3 threats (e.g., SQL injection, carding, bot traffic).
- Compare Cloudflare Pro ($20/month) vs. Sucuri ($199/year) vs. AWS WAF (pay per rule) vs. ModSecurity (free).
- Factor ৳ costs: In Bangladesh, a Pro Cloudflare plan costs about ৳2,400/month.
- Test latency: cloud WAFs often improve speed via CDN.
- Ask your developer if they can maintain custom rules.
- Consider Bangladesh-specific network reliability — cloud WAFs are less prone to local power outages.
Pro template: For an ecommerce store earning ৳50,000/month, we’d spend ৳1,000–2,500/month on WAF + CDN. That’s less than 3% of revenue — cheaper than a single chargeback.
📊 Expected results: You’ll narrow to 1-2 candidates. Proper selection prevents painful migration later.
Tactic 1.3: Check for OWASP Top 10 Coverage
Why this works: A good WAF must block injection, XSS, broken access control, etc. Not all WAFs cover all 10 out of the box. If a vendor says ‘we block everything’ without mentioning OWASP, run.
Exactly how to do it:
- Open the OWASP Top 10 2025 list (link above).
- For each WAF candidate, look up their rulepack documentation.
- Confirm they block automated bot threats + application-layer attacks.
- Check if they offer custom rules via WAF console.
- Check if they support TLS/HTTP/2 at the edge.
- Look for a managed rule set that updates monthly, not yearly.
Template: Ask your provider — ‘Does your WAF include OWASP CRS (Core Rule Set)?’ If they don’t know, move on.
📊 Expected results: You’ll eliminate 50% of weak WAF vendors. Clients who do this see 40% fewer incidents in the first year.
Phase 2: Deploy Your WAF Without Breaking Your Site
Deployment is where most Dhaka developers screw up. They flip the WAF on and immediately lock themselves out, block their own API, or stop legitimate payments. We’ll show you a safe, staged rollout that minimizes downtime and false positives. Remember: a WAF is a filter, and filters need tuning — never expect perfect behavior on day one.
Tactic 2.1: Start in Detection Mode (if supported)
Why this works: In detection mode, you can see attacks without blocking. This prevents breaking your checkout or admin panel. Cloudflare calls it ‘Log mode’; Sucuri calls it ‘Learning mode’. In 2026, this is standard practice.
Exactly how to do it:
- Log into your WAF dashboard and find Deployment Mode.
- Select ‘Detection’ or ‘Log only’ — not ‘Full blocking’.
- Set the mode for 24 hours.
- Configure the WAF to email you daily summaries.
- Review the logs for any false positives.
- Whitelist trusted IPs (e.g., your office in Gulshan or your developer’s VPN).
- After 24h, switch to ‘Block Mode’ but keep ‘Challenge’ for suspicious requests.
Pro script: ‘Dear WAF, log everything for 24 hours, do not block anything, send me a report each morning.’ — This one saved a Dhanmondi clinic from locking out their online appointment system.
📊 Expected results: 100% visibility into attack patterns without user impact. Typical detection mode shows 5-15 blocked requests per hour, including bots and scanners.
Tactic 2.2: Set Up DNS Routing Correctly
Why this works: Cloud WAF requires DNS proxy. Misconfigured DNS = downtime, and in Bangladesh, DNS propagation can take 24-48 hours. Getting this right means zero interruption for your customers on GPON or mobile networks.
Exactly how to do it:
- Back up your existing DNS records.
- Change your nameservers to the WAF provider’s nameservers.
- Recreate all A, CNAME, TXT, and MX records.
- Wait for propagation — use online DNS checker tools.
- Enable ‘Proxy’ on the root domain and www, not on subdomains you don’t want filtered.
- Test HTTPS: verify SSL certificate is valid.
- Update your server’s firewall to allow only WAF IPs.
Pro template: Before switching DNS, we always email the client: ‘Your site may be briefly inaccessible for 3-10 minutes during propagation. We will monitor and report.’ This sets expectations.
📊 Expected results: Zero downtime if done correctly. Our clients see a 10-15% speed increase due to CDN caching.
Tactic 2.3: Test Payment Gateways and APIs
Why this works: WAFs can block bots but also card issuer callbacks. Payment APIs from SSLCommerz, bKash, and Paypal often send requests that look like bot traffic. If you don’t whitelist them, your sales will crash.
Exactly how to do it:
- List all payment gateway callback URLs.
- In your WAF, create a rule to allow these URLs even if they match suspicious patterns.
- Whitelist the payment gateway’s static IPs (ask your gateway provider).
- Run a test transaction using your gateway’s sandbox.
- Check WAF logs for any false positives from these IPs.
- Create exceptions for API endpoints like /api/v1/payment/notify.
Pro template: In your WAF custom rules, add: ‘If URI contains /sslcz/ and IP starts with 103.102. — then allow.’ We use this for every SSLCommerz client in Mirpur.
📊 Expected results: Payment success rates return to baseline. One client saw their conversion rate recover from 1.2% to 3.8% after fixing these false positives.
🛡️ Keep Your Site Fast and Safe While You Sleep
Already chosen a WAF but not sure if it’s configured right? We’ll review your setup and show you exactly what to fix — free.
No commitment · 60-minute session · Bangladeshi clients welcome
Phase 3: Tune WAF Rules and Stop False Positives
A stock WAF rule set blocks 10 times more legitimate traffic than you think. In Dhaka, with ISPs and mobile carriers using shared IPs, false positives are common. A client in Banani once had their entire employee IP range flagged as bots because of a shared NAT gateway. Tuning is not optional — it’s the difference between security and frustration.
Tactic 3.1: Analyze WAF Logs with These Filters
Why this works: Logs tell you exactly what’s being blocked and why. Without filters, log analysis takes forever. With the right filters, you can spot false positives in 20 minutes.
Exactly how to do it:
- Open your WAF iframe log viewer or export as CSV.
- Filter by ‘Rule ID’ and ‘Action’ (block vs pass).
- Look at top blocked IPs that are NOT flagged as malicious.
- Group by URI — if /checkout is blocked repeatedly, you have a problem.
- Check User-Agent strings — some Bangladeshi banking apps use odd UA strings.
- Sort by time — false positives often spike after a WAF rule update.
Pro template: ‘Show me all blocked requests in the last 24 hours where the country is Bangladesh AND the User-Agent contains Android.’ That’s the first filter we run for Dhaka ecommerce clients.
📊 Expected results: You’ll identify 90% of false positives. One client found that 80% of blocked requests were from their own employee IPs.
Tactic 3.2: Use Allowlists for Bangladesh IP Ranges
Why this works: Bangladeshi ISPs like Link3, Grameenphone, and Teletalk often assign IPs that appear in threat databases. Whitelisting these ranges for non-sensitive paths prevents false blocks.
Exactly how to do it:
- Download the latest Bangladesh IP list from APNIC or IP2Location.
- Upload the list to your WAF’s geolocation allowlist.
- Apply the allowlist only to public pages, not admin or API.
- Test with a few devices on different BD mobile networks.
- Monitor log volume to ensure you’re not hiding attacks.
Pro script: ‘Allow all traffic from Bangladesh to /products/ but keep /account/ and /admin/ protected.’ This is what we use for our own site.
📊 Expected results: False positive rate drops by 50-70%. Legitimate user traffic from Bangladesh improves 20% in conversion.
Tactic 3.3: Adjust Sensitivity for Ecommerce
Why this works: Ecommerce pages have unique patterns — search queries with special characters, coupon codes, and rapid clicks. Default WAF rules often block these as SQL injection or bot behavior.
Exactly how to do it:
- Review your WAF’s default managed rules for a set.
- Set ‘Anomaly Score’ threshold to a higher value (e.g., 10 instead of 5).
- Create exceptions for specific WordPress plugins (WooCommerce, WPML, etc.).
- Disable rules that block JSON or multipart form data, but monitor them.
- Use custom rules to allow common search terms that include characters like % or _.
Pro template: In Cloudflare, add a custom rule: ‘If URI contains /?s= and Request Body contains <script> then block, but if it’s in Bangla, allow.’ — Real solution for a client with a Bangla search bar.
📊 Expected results: Cart abandonment drops by 15-30% because legitimate checkout steps are no longer interrupted.
Tactic 3.4: Create Your Own Custom Rules
Why this works: Off-the-shelf WAF rules are generic. Your business has unique endpoints, partners, and bots that need custom handling. For example, a Dhanmondi travel agency might have a third-party API polling for prices — that should be allowed.
Exactly how to do it:
- Identify your non-negotiable traffic: partner APIs, payment callbacks, licensed bots.
- Write a custom rule for each allowed traffic.
- Use regex for path matching, e.g., ‘/api/partner/.*’.
- Set the rule to ‘Allow’ with a high priority.
- Test on a staging site first.
- Version your rules in a git repo so you can roll back.
Pro template: In ModSecurity, add: ‘SecRule REQUEST_URI “^/api/partner/” “id:10001,phase:1,pass,nolog,allow”‘
📊 Expected results: You’ll eliminate 95% of false positives that remain after tuning. Your dev team will sleep better.
Phase 4: Monitor, Test, and Automate Your WAF
A WAF is not set-and-forget. The threat landscape changes weekly, and your web application changes with every theme update or plugin install. In 2026, we recommend treating your WAF as a living system that you monitor and improve monthly. Our clients who spend just 2 hours per month on WAF maintenance see 90% fewer successful breaches than those who ignore it.
Tactic 4.1: Set Up Real-Time Alerts
Why this works: If a brute force attack starts at 2 AM, you want to know at 2:01 AM. Without alerts, you find out when your site is already down.
Exactly how to do it:
- Connect your WAF to Slack or Telegram (or even SMS for a fee).
- Create alerts for ‘Blocked requests’ about 10 per minute.
- Create alerts for ‘WAF mode changed’ and ‘Service unavailable’.
- Set separate alerts for ‘OWASP Critical rules triggered’.
- Include raw logs in the alert message.
Pro script: ‘Alert me if more than 20 requests from the same IP are blocked within a minute.’ This catches most automated attacks.
📊 Expected results: Response time drops from 12 hours to under 10 minutes. That’s typical for our monitoring clients.
Tactic 4.2: Run Monthly Penetration Tests
Why this works: Your WAF may break after a WordPress update. Monthly pentests confirm your WAF is actually performing its job. We’ve found WAFs that stopped working because a plugin changed the server path.
Exactly how to do it:
- Use OWASP ZAP (free) or Burp Suite to scan a staging site.
- Run a baseline scan WITHOUT WAF to see which attacks are detected.
- Run the same scan with your WAF in full blocking mode.
- Compare results to see which risks are mitigated.
- Manually test your admin login for brute force protection.
- Document any gaps and adjust rules.
Pro template: ‘Use a tool like ZAP, but never on production without permission. Always test on staging.’ — Our guiding rule.
📊 Expected results: You’ll reduce successful attack surface by 90%. One client discovered their WAF wasn’t filtering `/wp-admin` at all.
Tactic 4.3: Automate Rule Updates
Why this works: WAF vendors release new threat signatures almost daily. Automating updates ensures you have the latest protection without opening the dashboard every week.
Exactly how to do it:
- Check if your WAF service supports auto-updates. Cloudflare does; Sucuri does.
- Enable auto-update for the managed rule set.
- For ModSecurity, use CRS-tooling via Ruby to pull updates from OWASP.
- Schedule a monthly audit of the changelog.
- Roll back if an update causes false positives.
Pro script: ‘On the first Monday of every month, commit WAF rule changes to a git branch, test on staging, then merge.’
📊 Expected results: 100% rule coverage, zero maintenance overhead. You’ll sleep better knowing attacks are caught automatically.
🏆 Real Case Study: How a Banani Ecommerce Store Cut Fraud by 92%
When Fahima Rahman launched her boutique online store from Banani last year, she was proud of the 2,000 monthly visitors she’d gained through Facebook ads. But in Q3 2025, her business was reeling: chargebacks were eating 8% of her revenue, and her site kept crashing during flash sales. The culprit? A botnet targeting vulnerable WooCommerce plugins. She didn’t have a WAF.
Fahima came to Rafirit Station after her bank threatened to terminate her payment gateway. We conducted a security audit and found:
- No WAF on the site — just the default hosting firewall.
- 24 plugin vulnerabilities, including a known SQL injection in an abandoned booking plugin.
- Malicious traffic from 63 different IPs hitting her admin panel hourly.
- Average site speed 4.2 seconds on 3G — worsened by constant bot traffic.
Our strategy included:
- Deploying Cloudflare Pro WAF with OWASP CRS.
- Setting WAF to ‘High’ security for /checkout and /my-account, ‘Medium’ for public pages.
- Whitelisting SSLCommerz IPs and API endpoints.
- Cleaning malware and removing 14 unused plugins.
- Enabling bot fight mode and TLS 1.3.
- Creating custom rules to block known ASN ranges hosting attack traffic.
- Setting up weekly WAF log reviews for 30 days.
Within 60 days, results were dramatic:
- Chargeback rate dropped from 8% to 0.3% — a 92% reduction.
- Monthly malicious traffic blocked: 18,000+ requests.
- Site speed improved from 4.2s to 1.8s on mobile.
- Shoppify abandoned cart emails recovered 12% of lost sales.
- Revenue jumped from ৳400,000 to ৳725,000 per month.
- Conversion rate rose from 1.9% to 3.4%.
Fahima said, “I thought security was only for big companies. Now I tell every boutique owner in Dhaka: if you take online payments, you need a WAF. It paid for itself in the first week.”
See more Rafirit Station case studies →
✅ Web Application Firewall Deployment Checklist
| Task | Status | Notes |
|---|---|---|
| Identify hosting and CMS | ✅ | Check cPanel or VPS access |
| Select WAF type (cloud/on-premise) | ✅ | Budget + tech skill |
| Verify OWASP Top 10 coverage | ✅ | Check rulepack |
| Start WAF in detection mode | ✅ | 24 hours |
| Backup DNS records | ✅ | Before switching nameservers |
| Update DNS / nameservers | ✅ | Wait for propagation |
| Whitelist payment gateway IPs | ✅ | SSLCommerz, bKash |
| Test checkout and APIs | ✅ | Sandbox test |
| Analyze logs for false positives | ✅ | Filter by BD IP |
| Create allowlist for BD IPs | ✅ | Public pages only |
| Set up real-time alerts | ✅ | Slack/Telegram |
| Run monthly pentest | ⚠️ | Use ZAP if budget is tight |
❓ Frequently Asked Questions
🎯 The Bottom Line
The counterintuitive truth about WAFs is that the biggest risk isn’t the attack — it’s your own misconfiguration. In 2026, a WAF that’s poorly deployed can actually hurt more than it helps, because you’ll trust it and stop monitoring your logs. We’ve seen businesses lose sales because they set security to ‘I’m under attack’ permanently and never reviewed the consequences.
Another counterintuitive takeaway: you don’t need to spend a fortune on a WAF. For most Dhaka businesses with under 50,000 monthly visitors, a free or low-cost cloud WAF gives you 95% of the protection that an enterprise setup would. The extra investment goes into people and processes — not fancy rules.
Start small, monitor continuously, and tune aggressively. The goal isn’t to block everything. The goal is to block the right things without ever annoying a paying customer.
⚡ Your Next Step (Do This Today)
- Log into your website host and check if ModSecurity is available in cPanel.
- Create a free Cloudflare account and add your domain — even without changing DNS, you can explore the dashboard.
- Download the OWASP Top 10 list and circle any threats that apply to your current setup.
- Take a screenshot of your current security plugins or headers — we’ll give you a free 50-point audit if you send it to us.
- Book your free strategy call using the button below; mention ‘WAF’ in the notes.
Ready to Get Results?
Let our Dhaka team secure your website with a WAF that actually works — no false positives, no downtime, just peace of mind.
💬 Drop “web application firewall” in the comments and we’ll send you our free WAF deployment checklist — no email required.