2016-07-06, 07:12 AM
Hi everyone,
I'd like to restrict users from accessing pages I do not want them to explore. I'm not sure how to explain this properly but I'll try. For example suppose there is this userbar image on my website:
http://website.com/images/groupimages/admin.png
Now users can get the above link by simply checking the link of the image. Now he can remove the unwanted part of URL and browse through the current directory and it's parent directories like:
http://website.com/images/groupimages/
http://website.com/images/
How do I prevent users from doing this? I'd like to somehow redirect them automatically to the homepage or display a blank page, an error or something similar. Thank you!
I'd like to restrict users from accessing pages I do not want them to explore. I'm not sure how to explain this properly but I'll try. For example suppose there is this userbar image on my website:
http://website.com/images/groupimages/admin.png
Now users can get the above link by simply checking the link of the image. Now he can remove the unwanted part of URL and browse through the current directory and it's parent directories like:
http://website.com/images/groupimages/
http://website.com/images/
How do I prevent users from doing this? I'd like to somehow redirect them automatically to the homepage or display a blank page, an error or something similar. Thank you!