I'm trying to create a coding exam portal like hacker rank or the one at prepbytes.com but I cant find a way to restrict the user to not open any tabs and not open the developer tools ( right click + inspect element), I've seen few examinations websites do it. Can any one please help me out on how to do it, I'm using react JS to build the exam platform everything is done just have to fix these issues and one more thing that I want to know is that how many tabs/windows that a user has opened.
Best Answer
I think you only can handle the keyboard event (CTRL + Shift + I -> On windows) to prevent default and not open dev tools, but i dont think you can restrict accessing it from browser interface.