Some sites that are more savvy now prevent you from getting into dev tools altogether. That and Google looking to make the whole web canvas is a disturbing trend.
I've seen websites hijack the keyboard shortcut and prevent right clicking from opening the context menu but none that actually prevented dev tools from being opened