Jump to content
Sign in to follow this  
victordeassis

How can I block user to access other page in my HTML

Recommended Posts

Hi guys!

 

I have an issue with my webpages, from the homepage I can go to the page two without clicking on the link, just adding a #pagetwo on the address bar, have someone solved this using javascript or something like that?

 

I'm attaching an example for those who will try to help me.

 

Thanks!

PageTransitionProblem.html

Share this post


Link to post
Share on other sites

you want to block someone manually adding #pagetwo to the address bar and not clicking the link?

 

If so, i don't understand why that an issue, it's not like manually adding #pagetwo is doing any damage, however, maybe am missing something.

 

I would think anything that is done to prevent #pagetwo being added to the address bar , could also effect the link working.

Share this post


Link to post
Share on other sites
I have an issue with my webpages, from the homepage I can go to the page two without clicking on the link, just adding a #pagetwo on the address bar, have someone solved this using javascript or something like that?

 

That is normal and desirable behavior. Why do you want or need abnormal behavior?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...