Is There A Way To...

Is there a way to…how do i say it…

if someone plug in a thing like flashdrive/ thunbdrive … or anything which is infected to my computer…my computer will like block it or something…like…pluggin the thumbdrive wont react unless u put a password or something…argh…dunno how to say it…just wont infect my pc …cause my bro or fren who comes to my house always use my pc…

i think u all know what i mean…i’m not that good in englsih…dunno how to say it right…so ya…