An inline filter of some sort could be used for particles but that would require maintenance.
There would also be soap scum build up and hair conditioner products would gunk up the works I'm sure.
https://imgcp.aacdn.jp/img-a/1200/auto/global-aaj-front/arti...