title: Javascript - How can I block my website if cookies are disabled?
body: <p>I would block my website if cookies are disabled using Javascript or JQuery. Haw can I do that?
  I know that I can check if cookies are enabled or not using <code>navigator.cookieEnabled</code> and I thought to do a script that use an <code>alert()</code> to say to the user to enable the cookies in order to be able to use the website and if he click ok I can call recursively my function which check if cookies are enabled and run the alert if not. This is my idea, but I don't know how to write it because it's my first approach to javascript. Can someone give me an advice? It's my idea the best way to implement it? </p>