webbrowser control acts different than IE c#











up vote
0
down vote

favorite












So I've got my WebBrowser application which is constantly accessing website to do some stuff..
The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE.
It is related to some punishment from this website's "security algorithms?", but I wonder why I can access it with IE while my WebBrowser is "banned"? I tried to clear cache, cookies(programatically), change my IP by HideMyAss or TunnelBear but no results. I've also forced my WebBrowser to use the latest IE version. Results are I can't visit this website for some time via my webbrowser, but I can via IE..



        int BrowserVer, RegVal;

using (WebBrowser Wb = new WebBrowser())
BrowserVer = Wb.Version.Major;

// set the appropriate IE version
if (BrowserVer >= 11)
RegVal = 11001;
else if (BrowserVer == 10)
RegVal = 10001;
else if (BrowserVer == 9)
RegVal = 9999;
else if (BrowserVer == 8)
RegVal = 8888;
else
RegVal = 7000;

// set the actual key
using (RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION", RegistryKeyPermissionCheck.ReadWriteSubTree))
if (Key.GetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe") == null)
Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", RegVal, RegistryValueKind.DWord);


How this website recognizes my webbrowser control? Is it anything more that I can clear/dispose to be not recognized?










share|improve this question






















  • Can you describe what you mean by: "The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE"
    – Flydog57
    Nov 5 at 19:40










  • What is the error message that your web browser control tells you?
    – Gabriel Luci
    Nov 5 at 19:58










  • It is not error, it's just website shows some text like "Unauthorized access..". Seems like if you enter that page multiple times in a specified time you will be "timeouted" or "banned" for like 3-4 hours.This is not error, I'm just wondering what can I do to be not recognized as a browser that entered there like many times in last hour. imgur.com/a/Yby9Da2
    – KKKk
    Nov 5 at 20:47

















up vote
0
down vote

favorite












So I've got my WebBrowser application which is constantly accessing website to do some stuff..
The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE.
It is related to some punishment from this website's "security algorithms?", but I wonder why I can access it with IE while my WebBrowser is "banned"? I tried to clear cache, cookies(programatically), change my IP by HideMyAss or TunnelBear but no results. I've also forced my WebBrowser to use the latest IE version. Results are I can't visit this website for some time via my webbrowser, but I can via IE..



        int BrowserVer, RegVal;

using (WebBrowser Wb = new WebBrowser())
BrowserVer = Wb.Version.Major;

// set the appropriate IE version
if (BrowserVer >= 11)
RegVal = 11001;
else if (BrowserVer == 10)
RegVal = 10001;
else if (BrowserVer == 9)
RegVal = 9999;
else if (BrowserVer == 8)
RegVal = 8888;
else
RegVal = 7000;

// set the actual key
using (RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION", RegistryKeyPermissionCheck.ReadWriteSubTree))
if (Key.GetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe") == null)
Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", RegVal, RegistryValueKind.DWord);


How this website recognizes my webbrowser control? Is it anything more that I can clear/dispose to be not recognized?










share|improve this question






















  • Can you describe what you mean by: "The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE"
    – Flydog57
    Nov 5 at 19:40










  • What is the error message that your web browser control tells you?
    – Gabriel Luci
    Nov 5 at 19:58










  • It is not error, it's just website shows some text like "Unauthorized access..". Seems like if you enter that page multiple times in a specified time you will be "timeouted" or "banned" for like 3-4 hours.This is not error, I'm just wondering what can I do to be not recognized as a browser that entered there like many times in last hour. imgur.com/a/Yby9Da2
    – KKKk
    Nov 5 at 20:47















up vote
0
down vote

favorite









up vote
0
down vote

favorite











So I've got my WebBrowser application which is constantly accessing website to do some stuff..
The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE.
It is related to some punishment from this website's "security algorithms?", but I wonder why I can access it with IE while my WebBrowser is "banned"? I tried to clear cache, cookies(programatically), change my IP by HideMyAss or TunnelBear but no results. I've also forced my WebBrowser to use the latest IE version. Results are I can't visit this website for some time via my webbrowser, but I can via IE..



        int BrowserVer, RegVal;

using (WebBrowser Wb = new WebBrowser())
BrowserVer = Wb.Version.Major;

// set the appropriate IE version
if (BrowserVer >= 11)
RegVal = 11001;
else if (BrowserVer == 10)
RegVal = 10001;
else if (BrowserVer == 9)
RegVal = 9999;
else if (BrowserVer == 8)
RegVal = 8888;
else
RegVal = 7000;

// set the actual key
using (RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION", RegistryKeyPermissionCheck.ReadWriteSubTree))
if (Key.GetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe") == null)
Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", RegVal, RegistryValueKind.DWord);


How this website recognizes my webbrowser control? Is it anything more that I can clear/dispose to be not recognized?










share|improve this question













So I've got my WebBrowser application which is constantly accessing website to do some stuff..
The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE.
It is related to some punishment from this website's "security algorithms?", but I wonder why I can access it with IE while my WebBrowser is "banned"? I tried to clear cache, cookies(programatically), change my IP by HideMyAss or TunnelBear but no results. I've also forced my WebBrowser to use the latest IE version. Results are I can't visit this website for some time via my webbrowser, but I can via IE..



        int BrowserVer, RegVal;

using (WebBrowser Wb = new WebBrowser())
BrowserVer = Wb.Version.Major;

// set the appropriate IE version
if (BrowserVer >= 11)
RegVal = 11001;
else if (BrowserVer == 10)
RegVal = 10001;
else if (BrowserVer == 9)
RegVal = 9999;
else if (BrowserVer == 8)
RegVal = 8888;
else
RegVal = 7000;

// set the actual key
using (RegistryKey Key = Registry.CurrentUser.CreateSubKey(@"SOFTWAREMicrosoftInternet ExplorerMainFeatureControlFEATURE_BROWSER_EMULATION", RegistryKeyPermissionCheck.ReadWriteSubTree))
if (Key.GetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe") == null)
Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", RegVal, RegistryValueKind.DWord);


How this website recognizes my webbrowser control? Is it anything more that I can clear/dispose to be not recognized?







c# internet-explorer caching cookies webbrowser-control






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 5 at 19:38









KKKk

388




388












  • Can you describe what you mean by: "The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE"
    – Flydog57
    Nov 5 at 19:40










  • What is the error message that your web browser control tells you?
    – Gabriel Luci
    Nov 5 at 19:58










  • It is not error, it's just website shows some text like "Unauthorized access..". Seems like if you enter that page multiple times in a specified time you will be "timeouted" or "banned" for like 3-4 hours.This is not error, I'm just wondering what can I do to be not recognized as a browser that entered there like many times in last hour. imgur.com/a/Yby9Da2
    – KKKk
    Nov 5 at 20:47




















  • Can you describe what you mean by: "The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE"
    – Flydog57
    Nov 5 at 19:40










  • What is the error message that your web browser control tells you?
    – Gabriel Luci
    Nov 5 at 19:58










  • It is not error, it's just website shows some text like "Unauthorized access..". Seems like if you enter that page multiple times in a specified time you will be "timeouted" or "banned" for like 3-4 hours.This is not error, I'm just wondering what can I do to be not recognized as a browser that entered there like many times in last hour. imgur.com/a/Yby9Da2
    – KKKk
    Nov 5 at 20:47


















Can you describe what you mean by: "The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE"
– Flydog57
Nov 5 at 19:40




Can you describe what you mean by: "The problem is at some point this website is starting to be unavailable to my WebBrowser but I can still access it from IE"
– Flydog57
Nov 5 at 19:40












What is the error message that your web browser control tells you?
– Gabriel Luci
Nov 5 at 19:58




What is the error message that your web browser control tells you?
– Gabriel Luci
Nov 5 at 19:58












It is not error, it's just website shows some text like "Unauthorized access..". Seems like if you enter that page multiple times in a specified time you will be "timeouted" or "banned" for like 3-4 hours.This is not error, I'm just wondering what can I do to be not recognized as a browser that entered there like many times in last hour. imgur.com/a/Yby9Da2
– KKKk
Nov 5 at 20:47






It is not error, it's just website shows some text like "Unauthorized access..". Seems like if you enter that page multiple times in a specified time you will be "timeouted" or "banned" for like 3-4 hours.This is not error, I'm just wondering what can I do to be not recognized as a browser that entered there like many times in last hour. imgur.com/a/Yby9Da2
– KKKk
Nov 5 at 20:47














1 Answer
1






active

oldest

votes

















up vote
1
down vote














How this website recognizes my webbrowser control? Is it anything more
that I can clear/dispose to be not recognized?




You could check the HTTP request when using IE and browser control access the website, and compare the request URL to check whether it append a query string to the URL.



Besides, you could also refer to this thread and check whether it's using property to detect if web page opened from WebBrowser control.






share|improve this answer





















  • Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
    – KKKk
    Nov 7 at 17:51











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














 

draft saved


draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53161089%2fwebbrowser-control-acts-different-than-ie-c-sharp%23new-answer', 'question_page');
}
);

Post as a guest
































1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
1
down vote














How this website recognizes my webbrowser control? Is it anything more
that I can clear/dispose to be not recognized?




You could check the HTTP request when using IE and browser control access the website, and compare the request URL to check whether it append a query string to the URL.



Besides, you could also refer to this thread and check whether it's using property to detect if web page opened from WebBrowser control.






share|improve this answer





















  • Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
    – KKKk
    Nov 7 at 17:51















up vote
1
down vote














How this website recognizes my webbrowser control? Is it anything more
that I can clear/dispose to be not recognized?




You could check the HTTP request when using IE and browser control access the website, and compare the request URL to check whether it append a query string to the URL.



Besides, you could also refer to this thread and check whether it's using property to detect if web page opened from WebBrowser control.






share|improve this answer





















  • Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
    – KKKk
    Nov 7 at 17:51













up vote
1
down vote










up vote
1
down vote










How this website recognizes my webbrowser control? Is it anything more
that I can clear/dispose to be not recognized?




You could check the HTTP request when using IE and browser control access the website, and compare the request URL to check whether it append a query string to the URL.



Besides, you could also refer to this thread and check whether it's using property to detect if web page opened from WebBrowser control.






share|improve this answer













How this website recognizes my webbrowser control? Is it anything more
that I can clear/dispose to be not recognized?




You could check the HTTP request when using IE and browser control access the website, and compare the request URL to check whether it append a query string to the URL.



Besides, you could also refer to this thread and check whether it's using property to detect if web page opened from WebBrowser control.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 6 at 7:33









Dillion

27413




27413












  • Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
    – KKKk
    Nov 7 at 17:51


















  • Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
    – KKKk
    Nov 7 at 17:51
















Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
– KKKk
Nov 7 at 17:51




Thanks for reply, I think changing user-agent will do the trick, however I haven't checked it yet.
– KKKk
Nov 7 at 17:51


















 

draft saved


draft discarded



















































 


draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53161089%2fwebbrowser-control-acts-different-than-ie-c-sharp%23new-answer', 'question_page');
}
);

Post as a guest




















































































這個網誌中的熱門文章

Xamarin.form Move up view when keyboard appear

Post-Redirect-Get with Spring WebFlux and Thymeleaf

Anylogic : not able to use stopDelay()