Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Sunshine And March Vibes (2025 Wallpapers Edition)

      May 16, 2025

      The Case For Minimal WordPress Setups: A Contrarian View On Theme Frameworks

      May 16, 2025

      How To Fix Largest Contentful Paint Issues With Subpart Analysis

      May 16, 2025

      How To Prevent WordPress SQL Injection Attacks

      May 16, 2025

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025

      Minecraft licensing robbed us of this controversial NFL schedule release video

      May 16, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      The power of generators

      May 16, 2025
      Recent

      The power of generators

      May 16, 2025

      Simplify Factory Associations with Laravel’s UseFactory Attribute

      May 16, 2025

      This Week in Laravel: React Native, PhpStorm Junie, and more

      May 16, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025
      Recent

      Microsoft has closed its “Experience Center” store in Sydney, Australia — as it ramps up a continued digital growth campaign

      May 16, 2025

      Bing Search APIs to be “decommissioned completely” as Microsoft urges developers to use its Azure agentic AI alternative

      May 16, 2025

      Microsoft might kill the Surface Laptop Studio as production is quietly halted

      May 16, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»Securing Application with Custom Headers Using AWS CloudFront and WAF

    Securing Application with Custom Headers Using AWS CloudFront and WAF

    August 13, 2024

    Securing Application with Custom Headers Using AWS CloudFront and WAF

    Background

    Your company runs a website that is hosted on AWS. To ensure high availability and low latency for users worldwide, you used AWS CloudFront as the Content Delivery Network (CDN) in front of your web servers. To enhance security and protect against web threats, you decided to integrate AWS WAF with your CloudFront distribution. There is also a requirement that sites are supposed to be publicly available over the network, but site content will be served conditionally with request header. If User send genuine request header, then site content is allowed otherwise it will block.

    Solution

    To Implement this scenario, you can follow the below steps:

    1.  Login AWS account, Navigate to AWS WAF

    Navigate to Rules. Click on Add, select “Add my own rules and rules group”

     

     

    Select Rule Builder, Enter Rule name

     

    Select “doesn’t match the statement” and provide header name and header value

     

    Select Action “Block” click on ADD

     

    To Setup any custom response code and Response Body, Click Custom Response and select Enable Button

     

    Click on Create Custom response Body for custom response message

     

    Adjust the rule priority then click on Add Rule Button.

    To access the Site, you can use Mod header plugin to send specific request header or for programmatic access you can use curl by passing the header values.

     

     

     

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleDoorDash Empowers Engineers with Kafka Self-Serve
    Next Article Last Week in AI #283 – Falcon Mamba 7B, Figure 2, VFusion3D, and more!

    Related Posts

    Security

    Nmap 7.96 Launches with Lightning-Fast DNS and 612 Scripts

    May 17, 2025
    Common Vulnerabilities and Exposures (CVEs)

    CVE-2024-47893 – VMware GPU Firmware Memory Disclosure

    May 17, 2025
    Leave A Reply Cancel Reply

    Continue Reading

    The biggest miss in gaming handhelds just got hit with a major sale, so is it worth buying now?

    News & Updates

    CVE-2025-4480 – Apache Code-Projects Simple College Management System Stack-Based Buffer Overflow Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    CVE-2025-45751 – SourceCodester Web Based Pharmacy Product Management System Cross Site Scripting (XSS)

    Common Vulnerabilities and Exposures (CVEs)

    Tales of Rocky the Rooster: Part 1

    Artificial Intelligence

    Highlights

    News & Updates

    The AI-Powered DevOps revolution: Redefining developer collaboration

    May 1, 2025

    When it comes to mastering DevOps, it’s often not the technical skills that trip us…

    Is Multimodal AI in Finance the Next Strategic Move for Growth?

    April 3, 2025

    How I Turned My Old Hi-Fi Speakers into Bluetooth Ones with Raspberry Pi

    May 10, 2025

    RESURGE Malware Exploits Ivanti Flaw with Rootkit and Web Shell Features

    March 30, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.