I much prefer these restrictions be made explicit, rather than the hiring committee silently discarding all the applications coming in from groups they are not currently interested in.
For a recent example, see the pleasing fable journalists give for when they consider race "relevant" [1] or "pertinent" [2] to a story, versus the venal reality exposed by a Washington Free Beacon project [3] sampling almost a thousand stories to suss out their real behavior.
[1] https://www.sfgate.com/news/article/When-Is-a-Suspect-s-Race...
[2] https://www.cleveland.com/readers/2014/07/the_complex_issue_...
[3] https://freebeacon.com/media/yes-the-media-bury-the-race-of-...