How To: Redirect URL Rule in AWS WAF (1 Min) | Web Application Firewall

Поделиться
HTML-код
  • Опубликовано: 13 сен 2024
  • In this tutorial, you'll learn how to create a redirect URL rule using Inspect URI in AWS WAF (Web Application Firewall).
    -
    Facebook: / gokcedbsql
    -
    Video Transcript
    -
    Hi guys, this is Abhi from Gokcedb. In this video, you're going to learn how to create a redirect URL rule in the AWS web application. Let's start by going inside the CloudFront distribution and then copy the distribution domain name.
    If I paste this URL into a browser and add the resource path I get an HTML table returned. However, if I use the fancy dash table path, instead of the table I get a message not found returned. To redirect the fancy dash table to the table path, I'm going to create a rule in the web application firewall.
    Let's navigate to the web application firewall attached to this CloudFront distribution. Click on the rules tab then click on add my on rule. Give your rule a name then select the URI path from the inspect dropdown.
    For match type, I'm going to select contain string and then enter the string to match. Select block for action then enables custom response. For the response code, I'm going to enter 301 which means permanent redirect then click on add new custom header.
    Enter the location for the key and the destination URL for value. Click on add rule then hit save. Now if I go back to the browser and try to access the fancy dash table path I should be redirected back to the table. There you have it.
    Make sure you like, subscribe, and turn on the notification bell. Until next time.

Комментарии • 8

  • @bert3456
    @bert3456 2 года назад +1

    Abi, congratulations on uploading videos consistently and sharing your webdev skills. I'm amazed with your expertise on how you represented your demo on webdev..😊

    • @GokceDB
      @GokceDB  2 года назад

      Thanks Bert! :)

  • @syedrm1913
    @syedrm1913 2 года назад +1

    Great!

  • @indomie6384
    @indomie6384 9 месяцев назад +1

    how do we ensure that it will redirect to a certain page if there is any request to my website (regardless of the URI path), instead of just a request to a certain page?

    • @GokceDB
      @GokceDB  9 месяцев назад

      I need to check the documentation

  • @diegovictor3984
    @diegovictor3984 Год назад +1

    Can I redirect to a different PORT? How can I do that?

    • @GokceDB
      @GokceDB  Год назад

      Did you try redirecting to a URL in this format? some.host.com:port