hadw
2
OSM doesn’t provide routing. It is all done by third party applications.
You could do it with any third party routing application that is downloadable, by making your own, offline copy of the map and manipulating that, but it is almost certainly going to be too much work for you. Otherwise, you would probably need an open source router, which you could modify so that merged your information about allowed streets before creating its routing database. Again that is possible but likely to be too much work for you.
I doubt if there is a canned solution.