473,809 Members | 2,891 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How can we restrict the ip range to access my web application

ad
I want to restrict only a range of ip can access my web application.
How can I do that ?
Nov 19 '05 #1
5 2227
Look in IIS - the virtual directory properties - security... there you will
see an option for restricting access by IP.
--
mr fox.

MCDBA, MCSD, MCSA.
"ad" wrote:
I want to restrict only a range of ip can access my web application.
How can I do that ?

Nov 19 '05 #2
ad
Can we do the restriction in application?

"mr fox" <mr***@discussi ons.microsoft.c om> ¼¶¼g©ó¶l¥ó·s»D
:21************ *************** *******@microso ft.com...
Look in IIS - the virtual directory properties - security... there you will see an option for restricting access by IP.
--
mr fox.

MCDBA, MCSD, MCSA.
"ad" wrote:
I want to restrict only a range of ip can access my web application.
How can I do that ?

Nov 19 '05 #3
"ad" <ad@wfes.tcc.ed u.tw> wrote in message
news:ec******** ******@tk2msftn gp13.phx.gbl...
Can we do the restriction in application?


You could put some code in the Application_Sta rt method in Global.asax which
interrogated the IP address of the incoming request and then redirected
somewhere else if the address was outside your allowed range. This might, in
fact, be your only option for a site hosted on a public ISP which doesn't
allow you access to the virtual directory settings.
Nov 19 '05 #4
Hi Mark:

I think you meant to say Application_Beg inRequest....

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Sun, 5 Jun 2005 11:10:32 +0100, "Mark Rae"
<ma**@mark-N-O-S-P-A-M-rae.co.uk> wrote:
"ad" <ad@wfes.tcc.ed u.tw> wrote in message
news:ec******* *******@tk2msft ngp13.phx.gbl.. .
Can we do the restriction in application?


You could put some code in the Application_Sta rt method in Global.asax which
interrogated the IP address of the incoming request and then redirected
somewhere else if the address was outside your allowed range. This might, in
fact, be your only option for a site hosted on a public ISP which doesn't
allow you access to the virtual directory settings.

Nov 19 '05 #5
"Scott Allen" <sc***@nospam.o detocode.com> wrote in message
news:dp******** *************** *********@4ax.c om...
I think you meant to say Application_Beg inRequest....


D'oh! Yes I did.
Nov 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3137
by: Paul | last post by:
Hi all, at present I I've built a website which can be updated by admin and users. My problem, I've combined "log in" and "access levels" to restrict access to certain pages, using the built in "log in" and "user authentication, restrict access to page" features. But I find the after login I constantly get redirected from the restricted pages.
1
442
by: Olivier Sauterel | last post by:
Hi all, Anyone can tell me if it's possible to restrict the access of a classes library (dll .NET) ? For sample restrict the possibility to explore all classes and there features into the object explorer from VS.Net or restrict the use of that library from another program, because this library will be distribued with an application, and i don't want to share the library functions ... otherwise, anyone can
7
2678
by: tweak | last post by:
Can someone give me a short example as how to best use this keyword in your code? This is my understanding: by definition restrict sounds like it is suppose to restrict access to memory location(s) pointed to, so that only one declared pointer can store that address and access the data in those memory blocks, where I the data in those location(s) can be changed. Is that a correct understanding?
1
1153
by: ad | last post by:
How can we restrict only a rage of IPs can access my WebApplicaiton?
4
2052
by: richard.mcgrath | last post by:
Hi, I have to restrict access to a site based on IP address. While I have been able to this successfully with code in the Global.aspx file, some if the IP address are not single IP addresses but rather ranges. If I know the network ID and the subnet mask, how can I check if a given IP address falls within that range? Thanks for any help,
5
2973
by: toddles666 | last post by:
Hi- Is there any way of restricting access to a database by application & account? For example, I only want the application APP1 to access the database using the USER1 account. I've tried to use the DB2 Governor to do this, but it seems it always allows the the first query to be processed before forcing the connection. Here is my db2gov config file: --- start config
21
6537
by: Niu Xiao | last post by:
I see a lot of use in function declarations, such as size_t fread(void* restrict ptr, size_t size, size_t nobj, FILE* restrict fp); but what does the keyword 'restrict' mean? there is no definition found in K&R 2nd.
7
5323
by: Chris Fulstow | last post by:
Hi, I need to restirict access at the page level to a range of IP addresses. What's the best approach? I thought of building an HTTP module that could compare the requesting IP with a restricted range, specified in web.config. Any thoughts? Thanks, Chris
3
3026
by: kmnotes04 | last post by:
Could anyone tell me how to restrict the date range for items that appear on a report? Old items from previous years appear on the report. I was asked to have only this year's items (and beyond) listed on the report. How do I do that?
0
9721
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9600
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10633
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10375
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10114
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7651
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6880
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5548
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
3
3011
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.