473,503 Members | 6,354 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 2212
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***@discussions.microsoft.com> ¼¶¼g©ó¶l¥ó·s»D
:21**********************************@microsoft.co m...
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.edu.tw> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Can we do the restriction in application?


You could put some code in the Application_Start 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_BeginRequest....

--
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.edu.tw> wrote in message
news:ec**************@tk2msftngp13.phx.gbl...
Can we do the restriction in application?


You could put some code in the Application_Start 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.odetocode.com> wrote in message
news:dp********************************@4ax.com...
I think you meant to say Application_BeginRequest....


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
3114
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...
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...
7
2658
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...
1
1142
by: ad | last post by:
How can we restrict only a rage of IPs can access my WebApplicaiton?
4
2041
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...
5
2947
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...
21
6469
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...
7
5308
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...
3
3007
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)...
0
7207
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,...
0
7093
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...
0
7291
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,...
0
7357
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7012
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...
0
7468
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...
0
4690
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...
0
3180
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...
1
748
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.