简体   繁体   中英

How to interact with browser in VB.NET

I have three website links:

link1.domain.com

link2.domain.com

link3.domain.com

And Three VB.NET Applications:

App1 for link1.domain.com

App2 for link2.domain.com

App3 for link3.domain.com

I want something like whenever I run App1 ONLY link1.domain.com will be available to access, and link2 & link3 will be hidden and not accessable and so on...

I also want my website unreachable when someone tries to access it without the app.

Is that possible?

Use a webbrowser control inside each application. The following link shows how to restrict urls in the webbrowser.

How can I prevent a user from browsing to certain web sites in a WebBrowser control?

For the 'must use app' restriction you can do this by making your app automatically login to the website that it has permission for and denying all anonymous users.

Example of auto login is here: C# - Automatic Login to a webpage using WebBrowser - disabled html tag

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM