Blocking typing in Url and go to page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • pokeynerd
    New Member
    • Apr 2012
    • 1

    Blocking typing in Url and go to page

    I need a type of code to where if you type in the Url of a page in the Search bar, when you get to the page it doesn't allow you to see the content. But if you click a link on a website it will allow you to see the content!

    Ex: instead of going to my forum by adress bar up top on browser it says: No, you must come to our main site first.

    But if you click a link on my site you will get to go to the forum without the note!!!
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You can't do it with just html or css. You may be able to achieve a similar result by using javascript and a cookie to track what page they visited and when. But that depends on them having cookies and javascript enabled. A more reliable result would be to choose a server side scripting language and then track it using a session.

    Comment

    Working...