The following methods I have been on their own computer verification through, other computers have not been tested, please the vast number of readers to verify and feedback, if there is a better way please advise.
In WinForm If you use this method to pop up a webpage, for example
Process.Start ("Http://www.xgjxc.top");
Or alternatively, if a WebBrowser control is embedded in the WinForm, a Web page is loaded, such as
This.webBrowser1.Navigate ("http://www.xgjxc.top/home.html");
There is a hyperlink in the page, such as this
<a href= "http://www.xgjxc.top/post/15.html" target= "_blank" > Puppy Invoicing Function Module Introduction (2015-05-10) </a>
Then clicking on this hyperlink will automatically open a browser window
If you follow the above method to open the Web page, in nine to ten, there will be the following screen:
Have to say, 360 more and more rogue, he does not look at the software has no malicious signature, but also completely do not look at the Web page to open there is no malicious content, as long as you want to open a webpage, then intercept it.
The other one is that I packaged the program with VS self-packaged and ran into no installation. NET client, the installation package is automatically downloaded from the official location, this time 360 is still intercepted, such as:
Intercept altogether two times,. NET packet interception, Simplified Chinese Language pack interception once, packaging time is selected "from the official unknown download components", must say, 360 is a big idiot.
Below to get to the point, say how to solve the open Web page this thing.
WinForm Click the button to open the page directly, using the following scenario:
Core code:
public partial class Home:form { [DllImport (' Shell32.dll ')] public extern static IntPtr ShellExecute (int hwnd, String lpoperation, String lpfile, String lpparameters, string lpdirectory, int nshowcmd); Public enum Showwindowcommands:int { sw_hide = 0, sw_shownormal = 1, sw_normal = 1, sw_ showminimized = 2, sw_showmaximized = 3, sw_maximize = 3, sw_shownoactivate = 4, sw_show = 5, SW _minimize = 6, sw_showminnoactive = 7, Sw_showna = 8, Sw_restore = 9, Sw_showdefault = ten, sw_ MAX = Ten } public Home () { InitializeComponent ();} }
Then click on the code in the event:
Private void linklabel1_linkclicked (object sender, LinkLabelLinkClickedEventArgs e) { ShellExecute (0@"Open"@ "http://www.xgjxc.top " NULL null, (int) showwindowcommands.sw_normal); }
In this case 360 will not be intercepted.
Similarly, if is clicked WebBrowser in the connection, the idea is like this, first intercepts this click action, does not let him pop up the webpage, but uses above method to carry on the popup, then will skip the interception.
The code is as follows:
Loading Web pages
Private void Home_load (object sender, EventArgs e) { this. WebBrowser1.Navigate (" http://www.xgjxc.top/home.html " ); }
Registering the NewWindow event:
Private void Webbrowser1_newwindow (object sender, CancelEventArgs e) {ShellExecute (0 @" Open " This NULL null, (inttrue;}
First E. Cancel=true Let click action Invalidation, and then this.webBrowser1.StatusText.ToString () get to just click on the connection, StatusText is the status bar text, we know the browser if the mouse moved to the connection, The status bar displays the connection URL.
Hope can help the same 360 troubled friends.
In addition, I hope that the computer has a soft friend to help test my software pop-up page is also blocked,: Http://www.xgjxc.top/xgjxc.rar user name test password a123456
Fix WinForm Open Web page and WebBrowser open link 360 false positive intercept problem