简体   繁体   中英

Opening an protect external page inside our web application

I have a secure c# asp.net mvc web application and inside a view I want to load an externa url (geckoboard dashboard). What I have done right now is to use an Iframe like:

<iframe src="https://sample.geckoboard.com/dashboard/test1232121" style="position:fixed; top:0px; left:0px; bottom:0px; right:0px; width:100%; height:100%; border:none; margin:0; padding:0; overflow:hidden; z-index:999999;">Your browser doesn't support IFrames</iframe>

But the sideback is if the user view the source page he could just copy the url from the iframe source and place it in a browser to see it directly, so I want to hide or obfuscate.

I was thinking also in maybe making a webrequest to the url and get the HTML and put the response into a div but because geckoboard uses a lot of javascripts that runs on their domain im pretty sure I will mess with the dashboard.

Any advice or recomendation on what is the best way to solve this?

If its opening a http connection, the user will always have the ability to view the source in the browser, even monitoring the network using a number of tools including google's developer tools built into chrome will show them that this is happening.

There are no 'good' ways to prevent the user from seeing content that you are asking his browser to download and display, and for good reason.

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