Redirect Rules - Powershell Script


how can i Redirect a “iex (irm website)” command from powershell to a Special Subdomain / Script ?

Which Request Method i have to specify ?

I’m not sure what this has to do with Cloudflare Redirect Rules.

If you’re not sure what API call it takes to add a Redirect Rule, you can use your browser’s Dev Tools (F12 in Chrome), Network tab, and set it to Preserve Log. When you save a setting, you can look at the request in the Network tab for the syntax and payload.

1 Like

Hey, thanks for your answer.

Found the coeerct Syntax.

(http.user_agent contains “WindowsPowerShell”)