hi,
I had created a web application in c#. It is uploaded and going smoothly. Now the request of the client is to restrict the access of their site. They want access only in some machines(Not in world wide). The restriction cannot be done by using IP address.
I have a logic to implement this. Create a particular folder in all the client machines. Then check for this particular folders existance during run time. If the folder exists then only the client can access the site.
I had created a folder inside the WINDOWS\System3 2 and check for its existance. It is running smoothly in my machine. But after uploading if can't read the directory. I don't know why it happens so.
I was created the folder by using the following command
md %windir%\System 32\MyFolder
I am checking the existance of the folder by using the following code
If(Directory.Ex ists(@"%windir% \System32\MyFol der")
{
Response.Redire ct("LoginPage.a spx");
}
I don't know whether there is any need to set the access permission such as read and write
if u have any idea please share
Thanks
Grace
5 2297
I had created a folder inside the WINDOWS\System3 2 and check for its existance. It is running smoothly in my machine. But after uploading if can't read the directory. I don't know why it happens so.
This is because ASP.NET doesn't interact with the client computer, only the server. When you were debugging on your local machine, you had access to that folder because your local machine was acting as the server. Once you uploaded the website, the website started looking on the webserver for that folder, which doesn't exist.
ASP.NET is server-side. You can't access the client's filesystem. This approach will not work. I suggest you look at authentication and user logins.
hi all,
can we use the dynamic ip address to identify a paticular computer on the internet .
is there a static ip address for a computer which have dynamic ip to connect to the internet
is an internet connection provider provides both static ip and dynamic ip to a computer
my need is to save the internet ip in the database and check while the user login to my website. if the ip address at the time of login and the ip address i the database are same then he can easily login. it works well with static ip addresses. but when dynamic ip is there then the ip is changing time to time. so i cannot keep it in my database
i am workig in vb.net and my aim to block the unwanted access to my website
please help as early as possible
thanks
grace
Dynamic IP is dynamic...there 's no better way of explaining it. It could change at any time, and there is nothing you can do to track it. Once my IP has changed, it's changed, and there is nothing linking me to the old one again.
Please stop mulitiposting, it is against site rules - see Posting Guidelines. I've also noted your one in IIS.
TRScheel 638
Recognized Expert Contributor
Your best bet is to set up a login page tied to a database. Another solution, no where near on par with the login page solution, is to have a common password that is required to access the page(s).
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Gerry |
last post by:
I have a developer here with a website running with only "Windows
Integrated Authentication" set on a Windows 2000 member server that
uses GetObject to get a user's group membership in the domain. This is
the code she's using:
set adsUser = getobject("WinNT://" & strUsername)
for each group in adsUser.groups
GrpList = GrpList & lcase(trim(group.name)) & ";"
next
|
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.
|
by: sonik son |
last post by:
Have a family website which requires username and password to access. I have the code to set a cookie ("user") upon successfull login.
However, I cannot figure out how to allow access to the site by checking to see if the "user" cookie has been previously set (i.e. they have logged in before and are authorized to enter the site.)
Currently using session variables to restrict access to page, but if anyone can provide code to check for...
|
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?
|
by: pemo |
last post by:
In Harbison and Steele's book, they say that using 'restrict' allows
functions like memcpy() to be prototyped like this:
void * memcpy(void * restrict s1, const void * restrict s2, size_t n);
But this seems a mite dangerous to me ... a restricted pointer ... is
*assumed* to be the only to access an object.
So, mightn't using such a prototype subtly imply that the compiler
will *actively check* that s1 and s2 do not point to the same
| |
by: Me |
last post by:
I'm trying to wrap my head around the wording but from what I think the
standard says:
1. it's impossible to swap a restrict pointer with another pointer,
i.e.
int a = 1, b = 2;
int * restrict ap = &a;
int * restrict bp = &b;
|
by: kanu |
last post by:
Hi,
We have moved our domain controllers from win2K to win3K.
The script below doesnt work at all now because by default Win3K disables "Network access: Let Everyone permissions apply to anonymous users"
GetObject("WinNT://domain/domainController/username,user")
We are using GetObject to get the user groups, so as to restrict them to certain parts of the website.
It still works with one of the old DC's which is win2K.
|
by: rajbala |
last post by:
Hi all,
I want to restrict tomcatserver files to particularly one client that who enters username and password correctly anywhere in web(specifically in another system).But nobody without username and password cannot access the those files.
For example,
I have avi files in tomcatserver.If any client enters username and password correctly only can access those avi files and others cannot able to access...
|
by: Mubs |
last post by:
Hi PPL,
On my website i have setup user log in. once they log in i want to restrict certain users from certain pages.. and on some pages i want the user to enter their username and password again..but i am stuck on how to restrict them.. any user guides on how to tackle this issue..i am using dreamweaver cs3
many thanx
|
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...
|
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...
| |
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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...
|
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();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |