How to avoid f.ex. ferries without setting in a model

Hello, I want to avoid ferries but not generally in a model.
Is there any possibillity to make this for examply by path params?