Skip to content
  • Blog
  • Events
  • Help
  • Careers
  • Contact
New Signature
  • About
      • Company

        Cognizant Microsoft Business Group is dedicated to changing the way businesses innovate, transform and run based on a unique cloud operating model. You will now be redirected to our new microsite to learn more.

        View Company

      • Awards

        As a company, we are regularly recognized within the IT industry as well as the communities we serve.

        View All Awards
      • News

        Read the most up-to-date corporate announcements, Microsoft technology updates, innovative business solutions and learn more about how the Cognizant Microsoft Business Group can take your business even farther.

        View News

      • Partners

        New Signature works with a number of outstanding technology companies to deliver the best experiences to our customers.

        View Partners
      • Leadership

        Cognizant Microsoft Business Group’s executive team is comprised of innovative leaders with proven experience and deep industry expertise. You will now be redirected to our new microsite to learn more.

        View Leadership

      • Industries

        Our solutions are tailored to empower organizations across a wide range
        of industries.

        View Industry Experience
    Close
  • Solutions
      • Intelligent Enterprise
        Solutions

        Going Digital
        Unleash cloud capability, deliver change and compete at speed with a Microsoft digital operating model, enabling you to work more efficiently as you transform your IT environment. Learn More

      • Featured Solution

        Secure Cloud
        In a world of constant threat, ensuring that your underlying cloud platform is protected is the first step on your organization’s journey towards a secure, compliant operating environment. Learn More
      • Intelligent Workplace
        Solutions

      • Secure Workplace

        Work Anywhere

        Endpoint Health

        Identity Health

        Teamwork Support



        VIEW WORKPLACE SOLUTIONS
      • Intelligent Cloud
        Solutions

      • App Factory

        Azure Accelerator

        Azure Launchpad

        Azure Launchpad for DevOps

        Application Health

        Platform Health

        VIEW ClOUD SOLUTIONS
    Close
  • Services
      • Begin your journey towards becoming a digital business with GO, our unique end-to-end framework based on the Microsoft Cloud Adoption Framework.

        GO DIGITAL OPERATING MODEL
      • Intelligent Enterprise

      • Consulting

        We go beyond just technology to help your organization understand how digital can help you uniquely differentiate and better serve your employees and customers.

        VIEW ENTERPRISE SERVICES
      • Intelligent Workplace

        • Identity

          Identity is your new first-line-of-defense. It’s vital to your users and clients that your identity platform is properly configured and secured.

          Endpoint

          Whether your devices are on-premises or remote, personal or business-owned, we can ensure they are properly managed and protected.

          Teamwork

          Today’s workforce is collaborating than ever before.  We can empower your current teams with tomorrow’s progressive technologies.

          VIEW WORKPLACE SERVICES
        • Intelligent Cloud

          • Platform

            The cloud is no longer some future-state. It’s the here and now. Adopting a cloud-first platform is one of the best ways to maintain a future-proofed competitive advantage.

            Applications

            We build cloud-native apps and modernize legacy systems with the power of Azure to give your organization a competitive edge.

            Data

            We can help your organization create secure, scalable data platforms to deliver simpler and more sophisticated insights to your business.

            VIEW CLOUD SERVICES
        Close
      • Client Stories
          • Case Studies

            Browse a comprehensive list of companies who have created successful partnerships and experienced transformative solutions with New Signature.

            View All Case Studies

          • Featured Case Study TalkTalk Modern Workplace

            New Signature worked with TalkTalk to define a new Modern Workplace solution based on Microsoft 365, which kept the user firmly at the center of the transformation.
            View Case Study

          • Testimonials

            We love transforming our customers businesses, take a look at what they have to say about New Signature.

            View Testimonials

          • Featured Testimonial Davis Construction

            With New Signature’s help, Davis was able to take a progressive step forward by migrating their private branch exchange (PBX) phone system to a Voice of Internet Protocol (VoIP) system.
            View Testimonial

        Close
      • Explore
          • Guides & Ebooks

            Dive deeper into education with your team by leveraging our expert-developed guides and eBooks.

            View All Guides & Ebooks

          • Infographics

            Rich with statistics and information, our infographics are great tools for quick but insightful learning.

            View All Infographics
          • Podcast: Office Explorers

            Join Kat and Rob monthly as they chat with New Signature experts and explore the world of O365.

            Listen to Podcasts

          • Videos

            Visit our videos stream to access recorded webinars, service information and to learn more about us.

            WATCH ALL VIDEOS
          • Flyers

            Searching for information about our services? Our flyers are a great takeaway for all those details.

            VIEW ALL FLYERS

          • Featured Stream

            Learn more about the tooling and expertise required to unlock productivity and mobilize your teams.

            MODERN WORKPLACE
        Close
        Close
      Blog

      This Request Has Been Denied by the Firewall: Configuring Exceptions on Azure Front Door

      New Signature / Blog / This Request Has Been Denied by the Firewall: Configuring Exceptions on Azure Front Door
      May 21, 2020May 18, 2020| Dan Scarfe

      I was recently involved with setting up a website for a not-for-profit. It’s not often I get hands on keyboards these days, so it’s been fun playing with some of the latest Azure features.

      The set-up was pretty simple – a WordPress website running on App Service, with Azure Front Door sat in front of it. Everything was working fine until the developers started reporting a curious error, some calls to WordPress were mysteriously failing with an error:

      “This request has been denied by the firewall.”

      No explanation. No debugging information, just something that pointed me in the vague direction of Azure Front Door. The quest was on to find the culprit.

      The first challenge was how to even enable debugging on the firewall. After some hunting, I discovered the setting. If you browse to your Azure Front Door, you’ll see the option for “Diagnostic settings”.

      Inside there, click:

      You’ll see the Diagnostics settings pane:

      Select the FrontdoorAccessLog, FrontdoorWebApplicationFirewallLog and AllMetrics. Then select “Send to Log Analytics” and select your subscription and Log Analytics workspace. If you don’t have a workspace, you can create one. Hit Save.

      Give it a minute to activate and then browse to the page that is causing the issue. Now it’s time to find out which rule is causing the problem and fix it.

      Open your Log Analytics workspace and type the following query into the query editor:

      AzureDiagnostics

      | where ResourceType == "FRONTDOORS" and Category == "FrontdoorWebApplicationFirewallLog"

      | where action_s == "Block"

      You should see your failed request listed in the results below:

      If you expand out one of the results, you will be able to see the full details of the failed request:

      Now the fun begins. Unfortunately, the diagnostics information is not particularly helpful. We can see from here the URL that is causing the problem; in this case it is:

      https://www.rememberme2020.uk:443/login/?action=lostpassword

      We can also see the rule which is causing it to fail:

      DefaultRuelSet-1.0-RCE-932150

      And we can see what it does not like:

      matchVariableValue Get New Password

      But what does this mean and how do we fix it? The simplest solution is to disable the rule, although this is not advisable. To fix it properly is slightly more involved.

      The first thing to understand is how the Web Application Firewall in Azure works. There are several default rules which you can configure which look for malicious actions being taken against your site.

      The firewall checks for malicious content in:

      • Request Headers (items such as the User-Agent, etc)
      • Request cookies (cookies sent by the browser)
      • Request query string arguments (http://domain.com/?key=value)
      • Request POST arguments (data submitted by forms)

      The first job is to work out which one of these is causing the problem. The log (helpfully) does not tell you and you must work it our yourself. Your clues are contained within the “details_matches_s” and “requestUri_s” fields in the log. The details show the value of the match, not the name of the field. To fix the problem, as we will see later, it is the name of the field you need.

      Query String Arguments

      The easiest to spot are the query string arguments. If the contents of the “details_matches_s” also appears within the “requestUri_s”, it is a query string. An example is shown below:

      We can see here:

      “dashicons,admin-bar,buttons,media-views,editor-buttons,wp-components,wp-block-editor,wp-nux,wp-edito”

      is part of the load-styles.php URI, as shown here:

      “load%5Bchunk_0%5D=dashicons,admin-bar,buttons,media-views,editor-buttons,wp-components,wp-block-edito”

      If we URL decode this (using something like https://www.urldecoder.org/) we’ll see the following:

      “load[chunk_0]=dashicons,admin-bar,buttons,media-views,editor-buttons,wp-components,wp-block-edito”

      So, the name of the field that is causing the problem is:

      “load[chunk_0]”

      Request Post Arguments

      Post request arguments are much harder to fix. This is because, again, all we can see in the logs are the value of the troublesome field, not the name of it. An example is shown here:

      The only way to find out what the name of the troublesome field is to crack open your HTTP debugger of choice. I used Fiddler. There are many resources to how to use Fiddler, like this article.

      Once you have set it up and it is capturing traffic

      • Look to see your failed request and click on it
      • In the request pane, click on WebForms button
      • Scroll down the list of Values on the right, trying to find the value which was logged
      • You will see the name to the left of it

      In this example, you can see the name of the field is “wpcf7-mail[subject]”

      Request Header Arguments and Cookies

      For these two, simply follow the instructions for Request Post Arguments, but in the request pane, click the Headers or Cookies button as appropriate.

      Fixing the error

      Once you have the name of the rule which is causing the problem, along with the name of the troublesome field, fixing it is trivially simple.

      In the Azure portal, open your Front Door WAF Policy and click on “Managed Rules” and then “Manage Exclusions”:

      You will then see the Managed rules – All exclusions pane. Click Add:

      You will then see the Rule exclusion pane. In here you’ll see:

      • The rule set you want this exception to apply to
      • The rule set (or leave blank to apply to all rule sets)
      • The specific rule (quite often when you select an individual rule, it will then trip again on another rule in this set, so it is sometimes easier to apply the exception to the group)
      • Match variable (this is the portion of the request which triggered the failure: header, post, cookie, query string)
      • Operator (standard contains, equals etc)
      • Selector (the name of the field you worked out above)

      Populate these as appropriate, and if you want WordPress to work properly, you will end up with something that looks like this:

       

       

       

      When you are finished click “Save” at the bottom, wait a couple of minutes and your exclusions will be deployed. Quite often you will put one exclusion in and immediately trigger another, so you might have to do a few rounds to get the original error to go away. Each time you trigger the failure, you must wait 3-4 minutes for the failure to make it to the log, so it is quite a painful process, unfortunately.

      There is no ability to put an exclusion on a particular page, or from a particular IP address, you have to go to this level of detail.

      In time, we may be able to add the match variable type and the field name to the log, which would make the whole process even more straightforward.

      Good luck!

      Categories
      Technical Reviews
      Contact New Signature

      Blog Posts

      • Agile Delivery for Large Scale Data Ingestion using Azure Data Explorer
      • Implementing Cloud Adoption Framework Across Vida Homeloan’s Organization
      • Cognizant Microsoft Business Group Achieves Microsoft Advanced Specialization for Windows Virtual Desktop
      • Cognizant’s Experience Lab for Continuous Testing with Azure

      Managed Services

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum, enim ac dignissim aliquet

      VIEW ALL MANAGED SERVICES

      Professional Services

      Lorem ipsum dolor sit amet, consectetur adipiscing elit. Praesent fermentum, enim ac dignissim aliquet

      VIEW ALL PROFESSIONAL SERVICES

      New Signature

      About

      • Company
      • Awards
      • News
      • Leadership
      • Partners
      • Industries

      Solutions

      • Intelligent Enterprise Solutions
      • Intelligent Workplace Solutions
      • Intelligent Cloud Solutions

      Services

      • GO
      • Intelligent Enterprise
      • Intelligent Workplace
      • Intelligent Cloud

      Client Stories

      • Client Stories
      • Testimonials

      Explore

      • Guides & Ebooks
      • Podcasts
      • Flyers
      • Infographics
      • Videos
      Copyright © 2023 New Signature
      • Blog
      • Events
      • Careers
      • Help
      • Anti Slavery
      • Privacy Policy
      • Contact
      • About
        • Company
        • Awards
        • News
        • Leadership
        • Partners
        • Industries
      • Services
        • GO
        • Intelligent Enterprise
        • Intelligent Workplace
        • Intelligent Cloud
      • Client Stories
        • Case Studies
        • Testimonials
      • Technologies
      • Explore
        • Guides & Ebooks
        • Infographics
        • Podcast: Office Explorers
        • Videos
        • Flyers
      • Blog
      • Events
      • Careers
      • Contact
      • Search
      Cookie Settings
      New Signature uses "Required Cookies" to run our website, "Functional Cookies" used by third parties to personalise marketing, including social media features.

      Change your preferences by clicking the “Cookie Settings” link at the bottom of every page. Learn more about cookies in our Cookie Policy and our Privacy Policy. By clicking the “Accept Cookies” button below, you consent to our use of cookies.

      Please note that “Required Cookies” will be set regardless of your consent.
      Cookie SettingsAccept Cookies
      Privacy & Cookies Policy

      Privacy Overview

      This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
      Targeting

      Targeting Cookies are used to capture user information in order for New Signature to deliver better user experiences.

      Performance

      Performance Cookies provide Content Delivery Network assets that deliver faster site content delivery capabilities.

      Required

      These cookies are required mainly in order to deliver Multilanguage site capabilities.

      Functional

      Functional Cookies allow us to provided advanced media capabilities including videos, surveys and other multimedia capabilities.

      Disabling Functional cookies will block the playing of videos and other multimedia site components.

      Save & Accept