zapret is in the AUR https://aur.archlinux.org/packages?K=zapret (zapret-nfqws-git)
then follow these instructions (skipping the clone/compile/copy step, of course).
the second instruction is more detailed
https://github.com/yt-dlp/yt-dlp/issues/10443#issuecomment-2248940967
https://ntc.party/t/goodbyedpi-4-linux-ubuntu/8394/6