Is it possible to configure a location in Web.config to deny all my country except my ip and also allowing the rest of the world?How do I format a Microsoft JSON date?How can I add an ampersand for a value in a ASP.net/C# app config file valueASP.NET MVC - Set custom IIdentity or IPrincipalThe breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight applicationIs it possible to configure a location in Web.config to only allow local connectionsASP.NET Forms Auth Allowing access to specific file in subdirectory when all others should be deniedIIS AppPoolIdentity and file system write access permissionsCustom error setting being ignored for locations denied in the web.configconfigure web.config to allow js from remote sourcesweb.config in folder allowing all or no user authentication

Why will we fail creating a self sustaining off world colony?

Is it possible to have recursive sum type, with each 'level' having distinct value?

Why do some PCBs have exposed plated perimeters?

What verb goes with "coup"?

What was the point of separating stdout and stderr?

How can this fractal shape perfectly cover a certain platonic solid?

Tricolour nonogram

Grid: different background color (of row) based on values

Hard for me to understand one tip written in "The as-if rule" of cppreference

How soon after takeoff can you recline your airplane seat?

Customs and immigration on a USA-UK-Sweden flight itinerary

A 2nd hand guitar pitch sounds weird

Have any large aeroplanes been landed — safely and without damage — in locations that they could not be flown away from?

"I am [the / an] owner of a bookstore"?

How does the 'five minute adventuring day' affect class balance?

Installed software from source, how to say yum not to install it from package?

Is this house-rule removing the increased effect of cantrips at higher character levels balanced?

Having to constantly redo everything because I don't know how to do it

Why isn't UDP with reliability (implemented at Application layer) a substitute of TCP?

Why do movie directors use brown tint on Mexico cities?

Is it possible to alias a column based on the result of a select+where?

Why am I getting an electric shock from the water in my hot tub?

What would you need merely the term "collection" for pitches, but not "scale"?

Journal standards vs. personal standards



Is it possible to configure a location in Web.config to deny all my country except my ip and also allowing the rest of the world?


How do I format a Microsoft JSON date?How can I add an ampersand for a value in a ASP.net/C# app config file valueASP.NET MVC - Set custom IIdentity or IPrincipalThe breakpoint will not currently be hit. No symbols have been loaded for this document in a Silverlight applicationIs it possible to configure a location in Web.config to only allow local connectionsASP.NET Forms Auth Allowing access to specific file in subdirectory when all others should be deniedIIS AppPoolIdentity and file system write access permissionsCustom error setting being ignored for locations denied in the web.configconfigure web.config to allow js from remote sourcesweb.config in folder allowing all or no user authentication













1















I've got a page in an ASP.Net app and I would like to deny connections from my country but allowing my personal ip to this page from the local machine.
Anyone know if this is possible?










share|improve this question


























    1















    I've got a page in an ASP.Net app and I would like to deny connections from my country but allowing my personal ip to this page from the local machine.
    Anyone know if this is possible?










    share|improve this question
























      1












      1








      1








      I've got a page in an ASP.Net app and I would like to deny connections from my country but allowing my personal ip to this page from the local machine.
      Anyone know if this is possible?










      share|improve this question














      I've got a page in an ASP.Net app and I would like to deny connections from my country but allowing my personal ip to this page from the local machine.
      Anyone know if this is possible?







      asp.net web-config






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 25 at 15:54









      Ayhesa HindsAyhesa Hinds

      61 bronze badge




      61 bronze badge




















          1 Answer
          1






          active

          oldest

          votes


















          0














          You can't block by country. Instead, you can block by IP ranges.






          share|improve this answer























          • i made it by range, but my ip continue deny

            – Ayhesa Hinds
            Mar 25 at 16:03











          • <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

            – Ayhesa Hinds
            Mar 25 at 16:05










          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',
          autoActivateHeartbeat: false,
          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%2f55341707%2fis-it-possible-to-configure-a-location-in-web-config-to-deny-all-my-country-exce%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          You can't block by country. Instead, you can block by IP ranges.






          share|improve this answer























          • i made it by range, but my ip continue deny

            – Ayhesa Hinds
            Mar 25 at 16:03











          • <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

            – Ayhesa Hinds
            Mar 25 at 16:05















          0














          You can't block by country. Instead, you can block by IP ranges.






          share|improve this answer























          • i made it by range, but my ip continue deny

            – Ayhesa Hinds
            Mar 25 at 16:03











          • <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

            – Ayhesa Hinds
            Mar 25 at 16:05













          0












          0








          0







          You can't block by country. Instead, you can block by IP ranges.






          share|improve this answer













          You can't block by country. Instead, you can block by IP ranges.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 25 at 15:58









          CrimsonTorsoCrimsonTorso

          766 bronze badges




          766 bronze badges












          • i made it by range, but my ip continue deny

            – Ayhesa Hinds
            Mar 25 at 16:03











          • <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

            – Ayhesa Hinds
            Mar 25 at 16:05

















          • i made it by range, but my ip continue deny

            – Ayhesa Hinds
            Mar 25 at 16:03











          • <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

            – Ayhesa Hinds
            Mar 25 at 16:05
















          i made it by range, but my ip continue deny

          – Ayhesa Hinds
          Mar 25 at 16:03





          i made it by range, but my ip continue deny

          – Ayhesa Hinds
          Mar 25 at 16:03













          <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

          – Ayhesa Hinds
          Mar 25 at 16:05





          <?xml version="1.0"?> <configuration> <system.webServer> <security> <ipSecurity allowUnlisted="true"> <remove ipAdress="192.168.23.111"/> (this is my ip) <clear/> <add ipAddress="2.18.64.0" subnetMask="255.255.255.0"/> <add ipAddress="2.19.251.0" subnetMask="255.255.255.0"/> (and rest of ip's from my country)

          – Ayhesa Hinds
          Mar 25 at 16:05






          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







          Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid …


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55341707%2fis-it-possible-to-configure-a-location-in-web-config-to-deny-all-my-country-exce%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to preserve electronics (computers, tablets and phones) for hundreds of years Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) The network's official Twitter account is up and running again. What content…How might modern humans leave a message for 50,000 years?How would an aquatic race develop computers?How do we make computers care for human life?Keeping supplies for 1000 yearsWhat will cell phones become in 100 years?What body armor protects against a laser?Could a society attain 1800s technology if limited to using copper and bronze?Electricity power (magic) and electronicsScavenging metal resources in post-apocalypse after 100 yearsWhy would precursors create devices that can survive and still work after hundreds of years?

          155 수학 과학 기타 둘러보기 메뉴eh추가해eh문서를 완성해

          해남서초등학교 학교 연혁 학교 동문 외부 링크 둘러보기 메뉴북위 34° 34′ 21″ 동경 126° 35′ 50″ / 북위 34.5726385° 동경 126.5972670°  / 34.5726385; 126.5972670해남서초등학교eh