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\System32 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%\System32\MyFolder
I am checking the existance of the folder by using the following code
If(Directory.Exists(@"%windir%\System32\MyFolder")
{
Response.Redirect("LoginPage.aspx");
}
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