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

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

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

keyboard - Smiles and long press feature in Android -