Protect (vb & Cs) Files?
May 22, 2010
I am new at asp sites, and just started to use visual studio...
So every page i make, there is another one (source file) linked to it.
Example...default.aspx and with that the default.aspx.vb or default.aspv.cs. I know what those files are for, but how do i protect them from being downloaded from users... Anyone can just type the url, and get my hard work :-/
View 3 Replies
Similar Messages:
Dec 17, 2010
I'm working on a website that streams audio files for the user from a directory on the server machine. How do I protect the audio files from users being able to navigate to the folder and just downloading them locally, but still provide them access to stream them? If I set permissions on the folder via IIS, is there a level that I can set so that the server can stream but not allow anonymous access?I'm sure there is a tutorial or other thread about this out there, it's just hard to search for this specific issue. Any help or a simple link to another thread/tutorial
View 3 Replies
May 25, 2010
I have a website running on a IIS 7.5 server with ASP.NET 4.0 on a shared host, but in full trust.
The site is a basic "file browser" that allows the visitors to login and have a list of files available to them displayed, and, obviously, download the files. The static files (mostly pdf files) are located in a sub folder on the site called data, e.g. http://example.com/data/...
The site uses ASP.NET form authentication.
My question is: How do I get the ASP.NET engine to handle the requests for the static files in the data folder, so that request for files are authenticated by ASP.NET, and users are not able to deep link to a file and grab files they are not allowed to have?
View 1 Replies
Jun 27, 2011
If a user clicked on a button, which runs a one minute process that MUST stay connected to the file (through the use of FileStream) for writing purpose, and he/she accidentally closed the browser. Currently, when that happens, if the user clicks on the button again, it will return an exception saying that the file is still being used. The part where I write to the file, the code for that is in a class library, which has a destructor (or finalizer, whichever), which calls a Dispose() method. It would usually take about 20 seconds before the file is free again to be used, but is there a way to make it quicker?
I'm thinking the way I'm designing my web app is not the conventional way. How do most people avoid this situation (ie. accidentally closing browser) where a file/resources are not freed up? Do they write into a SQL server instead of a flat file?
View 4 Replies
Jul 28, 2013
I have a webpage where by user can upload jpg file through browse control on my server. Functionality working fine.
I have concern that if any one create virus and assemble it in a form of jpg and upload it on my server which can crash the hard disk or any otherĀ disaster.
View 1 Replies
Mar 14, 2014
In my application i uploaded PDF files and it is stored in particular path in application folder.
but the requirement is that files should not be delete or modify by any user like user privileges in windows.How to do this in asp.net ?
View 1 Replies
Aug 8, 2010
web pages running on the localhost, if i copy the web page link (address link), then copy to the another tab or browser, it should not open, it should display a Login Page.
For example, web pages are
Login.aspx
Account.aspx
Once Login, account page will open, then copy the address link, then try to open in another tab or browser. It is directly account page is display.
Account page directly should not open without login page.
How to protect the web pages.
View 8 Replies
Oct 26, 2010
I have a website about to go live. I'm wondering what I should be doing about the connectionstring in the web.config. Do I obfuscate it and it so how?
View 3 Replies
Mar 13, 2011
I know there is a server software named media server protects video link to direct accessing.But adobe's.
Is there a way to protect video link? or progressive video stream loading and preventing video direct link.in aspnet ? so no jdownloader or any link gather programme can detect it.
View 2 Replies
Mar 9, 2011
I'm going to publish an asp.net pre-compiled web site on shared hosting account but I don't want my code to be copied and able to run on another domain. I need to check domain and if not example.com or www.example.com redirect to error page or show error as response.
EDIT: Here is my solution based on given answers
void Application_BeginRequest(object sender, EventArgs e)
{
string[] safeDomains = new string[] { "localhost",
"example.com", "www.example.com" };
if (!((IList)safeDomains).Contains(Request.ServerVariables["SERVER_NAME"]))
{
Response.Write("Domain not allowed!");
Response.End();
}
}
View 3 Replies
Jan 18, 2011
I have a page which includes video player (flash or silverlight). How I can protect videofile for direct download?
View 2 Replies
Jul 22, 2011
How to protect from sql injection where if a ' is put in the end of the URL there is an error ?
View 12 Replies
May 7, 2015
I want to protect and put a password to block any decompiling possibilities (for example using decompile software) of all C# codebehind files.
Is it possible to achieve this and still be able to run the website as normaly?
I am using Visual studio to precompile the files, but I guess it is still possible for someone to decompile them.
View 1 Replies
Dec 4, 2010
Code:
Sub btnLogin_OnClick(Src As Object, E As EventArgs)
Dim myConnection As OleDbConnection
Dim myCommand As OleDbCommand
[code]....
I found this code for user authentication. How secure is this? Can this be bypassed? Can I protect a MySQL database with a password? Can people see a MySQL database's data if it's not protected?
View 19 Replies
Jul 27, 2010
I have a process where I ftp a textfile to a webserver and then process the file (load it into a database). The textfile is then deleted. How do I protect the textfile from being viewed/ accessed by a user while it exists? I'm using ASP.Net 2.0
View 3 Replies
Aug 19, 2010
User downloads a document from a specified site, saves to the local disk and fills in confidential details. When other users logs on to this computer and if they try to access the file, the document should not be accessible. Also consider that the document can be saved to a common server too, in which case, no one else other than the person who downloaded and filled the document should be able to open the document.
some options to protect this document.
View 6 Replies
Apr 23, 2010
I have contact form and offten using this form my web site is under attck... someone install some code who try to connect using java scriptand all java scripts that I'm using in my web site are infected...
How to protect my contact form?
View 4 Replies
Sep 18, 2010
I have built an ASP.NET application that needs to be password protected. This application will be installed on multiple offline computers, and we need to make sure that when being installed it requires a password. But even if it requires a password, someone can easily copy the database and the published folder and duplicate the application on their system right?
I need a way to prevent this. It should only work on laptops that we have installed it on.
View 1 Replies
Jul 28, 2010
I've got SL application where i should implement file managment subsystem. I've got hierarchical structure of filesfolders(just description). Also each filefolder has its own permissions to usersgroups. I would like implement that one user who has permission to download file couldn't give it to another user, who hasn't this permission. So if user has download permission he get link [URL] and download it. But he could give this link to another person without permission.
View 2 Replies
Jan 28, 2010
I have written a namespace for a guestbook for my personal website. When I use a quote(") or single quote(') in a guestbook message the system(server) gives me a warning there is an error in my SQL syntax.
Incorrect syntax near 'are'. Unclosed quotation mark after the character string ')'.
I have tried to implement the answer of an older topic written by me in the namespace. But it gives me errors. [URL]
how to protect this namespace against SQL injections?
[Code]....
View 4 Replies
Jan 19, 2010
Incorrect syntax near 'are'. Unclosed quotation mark after the character string ')'.
how to protect my SQL database by using Csharp.net against a SQL injection.
View 4 Replies
Jun 21, 2010
Can asp.net Dropdownlist and validating they safely protect against SQL injection attack ??
View 7 Replies
May 24, 2010
I have a ASP.NET page called admin.aspx that needs to be protected from direct access.
I want it to be accessed only when the user enter his name & password in another page called login.aspx I'm working in ASP.NET with Visual Basic .NET 2008,how to do it.
View 4 Replies
Dec 22, 2010
My website have several URL,i want to prohibit user access it by way : paste direct url in addressbar of web browser.
View 6 Replies
May 11, 2010
I have a query string like "http://project/page1.aspx?userID=5". The operation won't be performed, if the 'userID' parameter changed manually. How it is possible?
View 7 Replies