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
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
add a comment |
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
add a comment |
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
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
asp.net web-config
asked Mar 25 at 15:54
Ayhesa HindsAyhesa Hinds
61 bronze badge
61 bronze badge
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can't block by country. Instead, you can block by IP ranges.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
You can't block by country. Instead, you can block by IP ranges.
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
add a comment |
You can't block by country. Instead, you can block by IP ranges.
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
add a comment |
You can't block by country. Instead, you can block by IP ranges.
You can't block by country. Instead, you can block by IP ranges.
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
add a comment |
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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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