Have you looked at this option?https://docs.microsoft.com/en-us/windows-server/remote/remote-desktop-services/clients/remote-desktop-web-client-adminBart...
You need a condition with path contains string "remoteDesktopGateway" and a rule to match this condition and execute function "http-request deny".Then it will work ...