Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Guys, I have to website in IIS that can accessed by Static IP and port, like:175.75.75.75:387, 175.75.75.75:456.
I Want to create a high level login form, and after authentication, users can view link of my both of websites.
the users might not access that 2 websites directly(by url or ip with port).
can anyone give me a solution?

Thank you.

What I have tried:

Each website has a login form, I Want to add another login form in higher level.
Posted
Updated 16-Feb-22 23:21pm

1 solution

According to your requirement, You should write an separate Login Application which should first verify the user with high level credentials and than you can redirect on either first site or on another on the basis of rights and privileges. Custom app for login will help you a lot and after that you can also enhance the functionality.
 
Share this answer
 
Comments
Member 13427811 17-Feb-22 5:35am    
how ban direct access
M Imran Ansari 17-Feb-22 5:51am    
You can implement just like a dual authentication mechanism. Check on direct access weather user is login through public login or not. If user is accessing direct link and publicAuth is fs false then you can redirect on Login Application page otherwise keep on that page.
You can achieve through URL pattern using IIS rules. Read for more information:
https://social.msdn.microsoft.com/Forums/en-US/eb38d418-a519-4e15-9626-72ed7557752c/prevent-direct-url-access-of-files?forum=iis7general

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900