title: Direct html page access denied
body: <p>Can any one tell  me how can I prevent my html page to be access directly through URL I want it to be acccess by login members only actually my page contain an image(this page is developed on word press) which refers to html page and this page needs to be access by login member only. Can any one suggest any javascript code for it I have used  following script:</p>
  
  <pre><code>if (document.referrer.indexOf('flipbook_signup/wp-admin/profile/') == -1) 
  { 
     alert("Please Login!"); 
     top.location="http://google.com";
  }   
  </code></pre>
  
  <p>But its alerting a message in both conditions. Any other solution?</p>