I have a page and I have web methods that I can use on an aspx page through ScriptManager. I am wondering if anyone can access these methods from outside the page, if so, how can I protect WebMethods?
Protecting web methods is completely impossible. After all, if you access them from your web page, they are accessed directly from the client browser.
You can add an additional parameter, which should contain some one-time password / token and generate it when rendering the page. This will make it difficult for someone to continue using your web service without actually visiting your site.
- , -. , , , .., . - cookie, , , , . , .., , . - , , , - .
, , - (.. ). , .
, -, ASPX. - -. , "" . -, , .
Yes, adding the WebMethod attribute makes this method remotely callable, which means you can call it, for example, using javascript. Simply put, you should not expose WebMethods that you do not want third parties to call. But for more information about security and web services, see: http://msdn.microsoft.com/en-us/magazine/cc188947.aspx
Yes.
But you can easily protect them .
Source: https://habr.com/ru/post/1536317/More articles:php code for selected mysql data output in pdf - phpCheck build version (dll) on OS X - .net-assemblyTry using resources and System.in - javaHow to protect WebMethod in asp.net/Jquery - asp.netHow to show tooltip in code in WPF - c #PyCharm opens old versions or files on duplicate tabs during debugging - pycharmmupdf export and android studio 0.5.4 - androidProvide PyCharm warning to reload files when they change externally - pycharmhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1536321/access-to-details-of-each-item-in-groupby&usg=ALkJrhiVM6_lK5VMFjR5D6glhvvbyExwiQFreqDist in NLTK does not sort output - pythonAll Articles