Hi all,
I need to write a URL rewrite rule to mask an external URL with my Domain homepage. As if I create a 301 redirect but I don't want to show it.
Can anyone provide me a suggested rule that works?

    Hello, please refer to nginx’s rewriting rules.

        location / {
            if ($http_referer !~* yourdomain.com) {
                return 301 http://yourdomain.com;
            }
        }

    aaP_muh.cpa