Hi Kashif Noon,
I am Dave, I will help you with this.
There is no real way to totally block Yahoo on different devices, you also mention in a library, Yahoo does have basic safe search settings, have you tried the steps they provide on the link below, that is about the only option for Yahoo.
https://in.help.yahoo.com/kb/SLN2247.html
If that does not suit your requirements, the best option may be to ask on the Yahoo forum to see if they have an option to help you.
________________________________________________________
Standard Disclaimer: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.
.