Way To Programmatically Prevent Certain Mac Address From Accessing Web Application?
Dec 15, 2010
i am using windows server 2003 and 2008 am about to install a web application on a server that is connected to other computers using simple wired network i.e. no active directory, no domain controller etc..
my question is:
is there a way to prevent mac addresses outside my specified list from accessing my application ? should it be through IIS or Web.config or should i put certain code in the page load events.another concern: if i use an SSL to secure my application, is it enough along with a reputable anti virus to prevent a virus to access my server through any network computer using my web application
I would like to ask if there is a way to prevent Firefox from caching scripts (.js files).
I have a project (ASP.Net Web App) with caching issue on firefox. When I first run the application (script is being cached on firefox) and modify the script and rerun the application, firefox is using the cached script instead of the updated one.
I'm using Firefox 3.6.13.
I already tried using HttpHeaders but it seems like firefox is ignoring my codes.
I have a GridView inside an UpdatePanel and because of some bug I can't seem to find, when I download a file (through an iframe inside another updatepanel) the background images of my buttons don't show up.I thought that, since the download doesn't really need to update the panel (which is causing the bug) I want to prevent the UpdatePanel only in this case from updating.I know that I can use the atribute "ChildrenAsTriggers = false" but I don't want to put an updatePanel1.Update() in every function called from inside the gridview.
The data that we display in gridview and details view can easily be scraped using automated tools. My question is if someone uses some automated tool and logs into the website and scraps data how can we find that? How can we detect whether a human is viewing the site or a tool? For example one way is by calculating the time up to which a user stays in page from which we can detect whether human intervention is involved. I do not know how to implement that but just thinking about this method. how to detect and prevent automated tools from scraping data from my website? I have used security image in login section, the user has to log in by entering username, password and security image displayed in the login section. Even then in home page a human may type security image and log in to the site and then use an automated tool to scrap data from the site!!When the recaptcha image appears after a period of time then that time alone the user may type the security image and again use automated tool to scrap data from the site. Actually, I have even developed a tool to scrap data from another site. So only i want to prevent this from happening in my site!
At the moment in my ASP.NET webApp I have some resources such as some .pdf files or pictures in specific folder in the host . If any user know the URL of those files can access them from the browser , How can i manage access or ban anonymous user from those files ?
i have create web application for school management system...bt when i run my webside...(my welcome page is defaul.aspx bt if i want to acces studentdetail.aspx then i only enter url and i get studentdetail.aspx)
I have an asp.net 4.0 site. I have CAS turned on for legacy support. But in CAS, is there a way to prevent a runtime loaded assembly from accessing the web.config file? I don't see a permission set that denies access to configuration information.
I have a VS2K8 solution with a web app and a WCF Service App. In my web app I've added the service reference and can get to the service in the service app from code behind:
WebTest.ServiceReference1.Service1Client prox = new WebTest.ServiceReference1.Service1Client("WSHttpBinding_IService1"); fromStandAlone.InnerHtml = prox.GetData(9); prox.Close();
how to add an AJAX Enabled WCF service to the service app and how to access it from the web app?
I need to get the MAC address of the machine which will be hosting web application. Web Application will be hosted locally (just for LAN in small environment). We will provide server which will host the application and the other machines will access the application through the system which we will provide.
We want to hard code the MAC address in ASP.NET application and check it if the application is still being hosted by the same server.
We don't want the client to clone the Hard Drive and use the application somewhere else.
We don't want any information about client machine which will request the web application.
I have an ASP.NET/C# application that exports some data into an Excel spreadsheet using COM interop at the click of a Button control. When I click the button, Excel is opened with the generated spreadsheet. For what it's worth, here is the button code:
<asp:Button ID="export" Text="Export to spreadsheet" runat="server" OnClick="Export_Workbook" />
This works fine, except when I click the button, close the subsequent spreadsheet, and refresh the page. When the page is refreshed after clicking the button, the call to Export_Workbook() is made again and so the spreadsheet opens again. Firefox, for example, says this when you refresh: "To display this page, Firefox must send information that will repeat any action (such as a search or order confirmation) that was performed earlier." This is something I want to avoid.
I'm sure there's a better way to accomplish what I'm trying to do, I'm just not sure what the best approach is.
I have an application that's locked down using forms authentication. There are few nightly tasks I want to script that make get requests to, say, http://myapp.domain.com/NightlyTask ... I don't need any response, I just need it to accept a get request from a certain IP address. I realize you could spoof an IP address, etc. but I'm trying to make this dead simple.Is there anyway I can setup the Web.config to unconditionally give access to a certain IP? Any other idea to approach this?Again, long-term solution would be a service running Quartz or some other cron-like job handler. I'm not quite there yet, hoping for an interim solution
I host my asp.net application with wcf service on IIS 7 and I want that this location could be possible at adress of my computer in lan, that other in network could get to it..
Now it looks like: http://localhost/wcfAx/Service1.svc
How to do like that : http://192.168.2.33/wcfAx/Service1.svc?
I host a local application on my machine which i provide access on network by normally type "http://computername/app". Can I change it to a real web address format "www.myapplication.org" for my local hosting.
add php Extension to IIS6 and IIS 7 via Code in C# using WMi (System.Management). I cant use DirectoryEntry.
I am stuck with adding a new ScriptMap Object to IIS 6/IIS7.
I have read some posts at here and there and heard that adding new WMi object from Scratch is difficult.
I want to enable IIS 6/IIS7 to handle php as well as aspx files and be able to process them. I have extracted php zip archive to a directory on my system (not installed it). The propblem is i am able to modify existing ScriptMap objects but i dont get to understand the add a new ScriptMap Objects.
Also i am not sure whether adding the a new extensiuon handler to ScriptMap will solve the problem or not.
We usually catch unhandled exceptions in Global.asax, and then we redirect to a nice friendly error page. This is fine for the Live environment, but in our development environment we would like to check if CustomErrors are Off, and if so, just throw the ugly error.
Is there an easy way to check if CustomErrors are Off through code?
I need to dynamically instantiate a web application from a console application. By this definition, I mean that my console application contains a web application that is not bound to IIS/XSP.Currently, I create the web application into a temporary directory and copy some forged files into it. These are a special Global.asax that maps to my own implementation of HttpApplication to use in the web application (I need to do some initialization at app start), then I forge special .asmx files that map to my own skeleton classes and dynamic plugins
foreach (IPlugin plugin in _target.Plugins) { WsdlSkeletonDefinition[] defs = plugin.GetWsdlSkeletons();
My approach works, but I'm not so satisfied by it because I have to write lots of garbage into file system, even if I eventually delete it all.I know I can control HTTP handlers via Web.config, but I don't want to forge a Web.config for that. I would like to create a mapping such as I can remove the .asmx extension from web services' URLs and still get them.For example, one of the default scripts is "LogbusManagement.asmx", which must be hard-coded into client APIs and the .asmx prevents portability to other platforms such as PHP. I want to make "LogbusManagement.asmx" equivalent to "LogbusManagement" and any extension. For this, I might use an HttpHandlerFactory.
My straight question is,like asked here by somebody else: is there a way to programmatically, possibly from Global.asax, to set IHttpHandlers or IHttpHandlerFactories for web applications?
I've created web site in c:website folder using visual studio 2010. Then, I've created web site in IIS 7.5 that maps to that folder. However when I access Default.aspx page and request to css is issued like
I have to Pc, A is Server and B is client ,On server machine windows server2003 And iis is installed.i have developed asp.net application on server machine and its is executing perfectly on server like [URL]
but this page is not accessing on client Pc (B)
how can i access this page or Application on pc B(client).