Security check to avoid direct visitor on a page -


i have page want loaded iframe.

i use solution on link it. how identify if webpage being loaded inside iframe or directly browser window?

but doesn't work in ie use conditional comments this

<!--[if ie 9]> <script type="text/javascript">     window.location = "http://mysite.com/nodirectvisit.html"; </script> <![endif]--> 

together working in ie, chrome, ff, , opera.

i want ask if there still other ways visit page directly?

thanks

if user disables javascript, code not run. maybe use sessions track users coming from?


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

node.js - Bad Request - node js ajax post -

uitableview - Create and use custom prototype table cells in xamarin ios using storyboard -