Can I stop users from opening developer tools on my site?
Not effectively. Scripts that try to detect or block DevTools are easily bypassed and mainly frustrate legitimate users. Because the tools run in the user's own browser, you cannot reliably disable them. The durable answer is to build so that nothing sensitive is exposed to the client in the first place.