Stack Exchange network consists of 177 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
How do I filter the questions/answers shown on the home page and in search results?
This seems to exist already. Try adding closed:0 to your search.
Lots more details here.