is there a way that i can block my dev tools so no one else can use them
No, this isn’t possible.
Why would you want to do that?
because someone hacked my shit and he gets in it and changes it
That’s not how it works, you can’t be “hacked” by DevTools.
DevTools only change the page on the computer it’s being used, not your website code.