Questions tagged [ip-restrictions]
86 questions
3
votes
2 answers
IP Address and Domain Restrictions in ASP.NET
I want my web application to only be reachable from exact IP ranges.
If client IP is not on the range, which is saved in WEB.Config application must deny my access to page.

RASKOLNIKOV
- 732
- 2
- 9
- 20
3
votes
1 answer
IIS 7 IP Restriction WITHOUT app pool recycling?
Im am currently restricting one or more (but not all) web sites to specific IP addresses via built in "IPv4 address and domain restrictions" using default value of "Deny".
The issue is that every time we add an IP is that all associated app pools…

Taber Loveless
- 33
- 5
2
votes
1 answer
Restrict access to different site sections by ip
In our MVC 3 solution we have a site with many sections. Customer want to have a possibility to manage access to each section by IP address(from admin part). What are the standard ways of implementing this requirements?
I see, smth like this: every…

valerii.sverdlik
- 559
- 4
- 18
2
votes
0 answers
Should I expose Web API to client React app?
We are in process of designing a system using Azure App Service consist of Asp.Net Core 3 Web API and React Web Application(SPA – SEO not required). Currently React azure web app calling Web API direct with Client Side Rendering. For better…

Med
- 21
- 2
2
votes
0 answers
iis web.config ip restriction for url path
Can I define an IP restriction in my web.config that only applies to
/blog/admin.php
I could only find information about restricting access to everything.

Chris
- 13,100
- 23
- 79
- 162
2
votes
2 answers
After adding IP restriction I get a '403 error' for get_file_contents
I have the following code that determines if an image is an SVG or not so that it displays the source if it is (the SVG can then be coloured using CSS):
if (strpos('url_to_an_image', '.svg') !== false) {
echo…

greebstreebling
- 316
- 1
- 2
- 13
2
votes
2 answers
Restrict public web application access to specific dynamic source IP addresses
I'm developing a web application using Laravel hosting on a public cloud. Now, the application can be accessed publicly on the internet via domain address. However, I want to restrict to only users who are connecting to the organization networks to…

spicydog
- 1,644
- 1
- 17
- 32
2
votes
1 answer
Spring Security Java Config - dynamic IP list for a Request URL
I have two configuration. The first would like to achieve that all requests from(/api/**) must come only from a determined ip.
like Following...
.authorizeRequests().antMatchers("/api/**").hasIpAddress("dynamic List of IPs");
It should be checked…

Sascha
- 21
- 1
- 2
2
votes
1 answer
Easiest way to block IP's from an internet provider (several sub/ranges)?
My site is being visited lately by IP's (bots?) like this:
XX.XX.XX.XX.broad.pt.fj.dynamic.163data.com.cn
IP Location China China Fuzhou Chinanet Fujian Province Network
The behaviour is the same - (I guess) they are trying to get admin id of a…

snayob
- 311
- 2
- 11
2
votes
1 answer
IP restriction not working when following documentation of Windows Azure
I want to try to restrict access to a webrole based on 'Cloud Services' based on IP. There is a good documentation in this article, but when I follow it I get an error when deploying it.
The error I get is:
Recycling (Role has encountered an error…

Amko Hartman
- 23
- 3
2
votes
1 answer
IIS: Add Feature
I need to edit IP rules using the IP Address and Domain Restrictions feature in IIS 7.0, but on my Windows 7 machine this feature is not present in my IIS. Does anybody know how to go about adding this feature to IIS? I can't find a download…

valen
- 807
- 1
- 16
- 43
1
vote
3 answers
Server socket - accept connections only from IP addresses in the whitelist
I have a socket server that listens and accepts connections from client, which works as follow:
... do some pre-processing (socket, binds, etc)
//listen to client
if (listen(sockfd, BACKLOG) == -1) {
perror("listen");
…

all_by_grace
- 2,315
- 6
- 37
- 52
1
vote
1 answer
how to restrict user to only accessible the flutter app when user connect with organization wi-fi network?
I want to develop a attendance flutter app in which want to restrict the user to access the app ,only when he/she connect with organization wi-fi network the user can access app. And if user try to connect with mobile data or another network the app…

Aman Srivastava
- 11
- 1
1
vote
0 answers
Allow login of a specific users from specific IP address Keycloak
I have a Keycloak server with many users and the account console or login endpoint (../auth/realms/myrealm/protocol/openid-connect/auth) is public on the Internet.
Now I want to restrict some of my users' login access to this client based on their…

b0w92
- 55
- 8
1
vote
0 answers
Wordpress error when trying to log onto /admin. TypeError thrown Return value of SISANU_Restrict_Country_IP_Login
When I am trying to login onto to my wordpress admin page I am getting the below error:
TypeError thrown
Return value of SISANU_Restrict_Country_IP_Login::maybe_fetch_url() must be of the type string, bool returned
Does anyone know what this error…

Thomas Winterberg
- 11
- 1