How can I prevent the client calling meteor calls directly from the console of the browser via developer tools?
Asked
Active
Viewed 194 times
2 Answers
0
You can't. At least you can't do it in all browsers, so you can't rely on it.

Peppe L-G
- 7,351
- 2
- 25
- 50
0
You could do this (it may help, but not sur that it will work on all browsers as Peppe LG says):
Client side code:
Object.defineProperty(console, '_commandLineAPI',
{ get : function() { throw 'Nooo!' } })
From: How does Facebook disable the browser's integrated Developer Tools?
-
As it says in the Epilogue in the answer you got your code from, it doesn't work in Chrome any more. – Peppe L-G Jul 27 '14 at 19:23