Protect Some Pages From Direct Access?

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


Similar Messages:

Security :: Deny Pages From Direct Access?

Dec 28, 2010

I have certain pages in my application that are designed to be accessed only by redirect from other pages, and not directly(i.e they must get a query string from other page, otherwise there is an exception).

So I want to prevent users from accessing them by typing the URL, but I want them to be available by redirect.

View 1 Replies

Security :: Restrict Pages Direct URL Access?

Mar 17, 2010

I have a security issue in my web application where user can enter malicious data/can change the page path directory. To avoid these i want to restrict the user by accessing/typing in the URL.

View 5 Replies

Security :: Preventing Direct Access To Non .aspx Pages In Protected Folder?

May 24, 2010

In one of my website I need to prevent direct access to non .aspx pages in a protected folder. Authentication works fine if I am going to [URL] but in one case my users are uploading html pages in that folder and if somebody cut and paste [URL]the page can be seen without the authentication process to be activated.

View 6 Replies

Block Direct Access To .aspx Pages Using IIS7's URLRewrite Module?

Mar 30, 2011

I am using IIS7's URLRewrite feature to hide the .aspx extension in my ASP.NET WebForms application's URLs.

I'm using the following configuration:

[code]....

I can now browse to:

[URL]

and this is rewritten to:

[URL]

This preserves the "pretty" url in the browser address bar. I have also updated all my links on the site to use the extensionless URLs.

The problem is that the underlying .aspx pages can still be accessed directly and I'd like to prevent this.

If a user browses to [URL] I'd like it to either redirect/rewrite to [URL], or at the very least just return a "Page not found".

Update:

I managed to get this working by redirecting all .aspx pages to the home directory. This isn't ideal as I'd prefer to send them to the non-.aspx version, but it will do for now.

<rule name="Block .aspx" stopProcessing="true">
<match url=".aspx" />
<action type="Redirect" url="/" />
</rule>`

How do I rewrite and redirect URLs that directly address .aspx pages to my friendly URL format?

View 2 Replies

Protect Dynamic Data Pages Using Authentication?

May 6, 2010

I have a site where most of my pages are arranged in business area folders, e.g. Activations, Outdoors, Branding. Each folder has a small web.config that protects the contents against access by people without a role for that business area.

However, basic admin for most business areas is done via Dynamic Data pages. These are only basically protected by not appearing in the menu unless the user has the correct role, but they are still accessible directly via URL, because of the {table}/{Action} routing used by Dynamic Data. What can I do to protect these pages against direct access?

View 1 Replies

Security :: Building An Application That Has Some Pages Public And Others Password Protect?

Jun 16, 2010

I am interested in finding out how I would go about displaying a website wiithout forms authentication but to utilise forms authentication when the user makes a request by clicking in the signin button, and then the user will view other pages that are private and secure,

View 2 Replies

Security :: Denying Direct URL Access?

Jun 28, 2010

I need to restrict access to pages based on permission given to roles based user .Roles created dynamically so that i can't restrict thru the WEB config file .i am using the custom sitemap so menu is showns correctly based on roles , but if we enter direct url in address bar we can access that page although its not permitted for the user .is there any other way to redirect to common access restrict page .

View 3 Replies

Denying Direct Access To A Webpage?

Mar 11, 2010

I have a webpage errors.aspx that needs to be protected from direct access. I want it to be accessed only when redirected to by another web page.

View 3 Replies

Security :: Disallow Direct Access To Files?

Aug 19, 2010

Here is my dilema, on my site i have a WordPress Audio player (http://wpaudioplayer.com/standalone) that plays my mp3's.

It loads the Mp3's in by javascript...example below:

AudioPlayer.embed("audioplayer_7", { soundFile: "/Files/Music/[name of file].mp3" });

This file name is clearly visible in the browser source. Not a problem, however this means that any user can legitimately browse to the file directly and download it.

Now i still need the mp3 player (which is flash) to have access to the file but if a user was to try accessing the file directly, they would not be allowed access to it.

I am not sure how to go about this, i am circling the idea of a httphandler but not sure if this is sufficiant to stop the direct access to the file.

View 2 Replies

To Get Direct File Access To Files Within The Web Directories From .NET Application?

Jan 10, 2011

My ASP.NET application logs transactions (both inside AND outside of databases), and therefore needs read/write access to text files within various directories within the root of the website - in ADDITION to the normal database access.

In this scenario, how can I safely allow my ASP.NET application to write data to the web folders? I have a thread-safe DLL that performs the actual work, so I don't believe I need to worry about multiple sessions writing to the log files at the exact same time - assuming my DLL will only be running in a single instance/process that will be shared between numerous ASP.NET instances/processes/threads.

But I'm more concerned about file access permissions. I've heard that ASP.NET applications generally aren't allowed access to the webserver's local file system, and that this may even restrict my DLL from getting the correct file access. Can I grant my application file-access to the web-driectories?

View 1 Replies

Security :: Prevent Direct Access To Embedded Page?

Oct 15, 2010

Im using an aspx page as the srcl for an image in the host page to serve a dynamically generated image to the user based on parameters they supply

ie

<img alt="" src="generateimage.aspx" id="imagegen"/></div>

Id like for people only to access the content via default.aspx and not the dynamically generated content generateimage.aspx. Any attempt to browse here directly should be redirected to an error page

View 1 Replies

Security :: Direct Access To The Page Using Role & Membership Provider?

Feb 15, 2011

I have a web app developed using role & membership provider...

this is my web.config file

<authentication mode="Forms">
<forms loginUrl="Forms/LogIn.aspx" name=".ASPXFORMSAUTH" defaultUrl="Forms/main.aspx" timeout="30"></forms>
</authentication>[code]....

So i would like that the page "pag1.aspx" is reached bypassing the "main.aspx" so If I try to digit directly on the server http://localhost/forms/pag1.aspx?C=159 ......correctly appears the login page....and the URL became..

http://localhost/Forms/LogIn.aspx?ReturnUrl=%2fForms%2fpag1.aspx%3fC%3d151&C=159 and after login I can see correctly the page1.aspx . when I try to reach the page from my browser..I digit

http://myserver/forms/pag1.aspx?C=159 .... the login page appears...but the url became..

http://myserver/Forms/main.aspx

and after login I cannot see the page1.aspx....but main.aspx

View 1 Replies

Access :: Protect Password In Text File From Viewing?

Nov 28, 2010

I need to preteect text file from vewing because it include usernam and password

View 1 Replies

Security :: How To Protect Web.config File From External Access

Jun 18, 2010

How to protect our web.config file from external access.

I mean some sort of password protection.

View 3 Replies

C# - Good Practice To Perform Direct Database Access In The Code-behind Of Webpage?

Jun 7, 2010

I am an experienced developer but I am new to web application development. Now I am in charge of developing a new web application and I could really use some input from experienced web developers out there.

I'd like to understand exactly what experienced web developers do in the code-behind pages. At first I thought it was best to have a rule that all the database access and business logic should be performed in classes external to the code-behind pages. My thought was that only logic necessary for the web form would be performed in the code-behind. I still think that all the business logic should be performed in other classes but I'm beginning to think it would be alright if the code-behind had access to the database to query it directly rather than having to call other classes to receive a dataset or collection back.

View 2 Replies

IIS Configuration :: How To Protect Files And Folders On Server So That No One Can Access Directly

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

VS 2008 Different Users Having Access To Different Pages?

Mar 14, 2011

I`m building the web app in which I will have couple of different modules, and I want to have an opportunity to assign different modules to each users.

I know that good way of doing it is to use ASP.NET Membership and Roles etc.

But -> In my app I have a very simple Memebrship management -> Administrator is the only person who can create and delete users, and I also want to use my own SQL database to hold user data. So to use ASP.NET Mebership I should write my own Membership and Role Providers.

It is clear, but there is a lot of functions I should ovveride which I will never use. Like the whole stuff with question and answer.

View 3 Replies

Web Forms :: How To Access User ID On All Pages

May 7, 2015

I want to Transfer UserId after loggin in to everypage in app till the user gets logged out...

View 1 Replies

Security :: Restricting Access To Folders And Pages?

Nov 16, 2010

I'm using user membership and roles. Below is my web.config for subfolder restriction.

[Code]....

The way I have above, no one can access this folder, mySub, except Administrators, Editors, and Members. However, here's what I want. I want to allow all and any user to the default.aspx page of this mySub folder and denied any other pages if they're not Administrators, Editors, and Members. One last thing, also denied access to addWord.aspx if they're not Administrators and Editors. I know I can list all the pages and give them various permission but I do not want to list all the pages. What's the best and easist way to accomplish this?

View 2 Replies

Visual Studio :: How To Access Pages Remotely In XP

Dec 24, 2010

I am facing a problem in accessing the asp.net webpages remotely.

i am using the server as my windows 7 laptop with vs2008 and sql server 2008. when i try to connect from client XP PC it says time out error.

View 6 Replies

Security :: Authentication - Can't Access Editing Pages

Oct 3, 2010

I have a website developed in ASP.NET created by someone else, sitting on another server... until now... a simple(ish) setup with login to update content. The site was zipped up and I was told it would be a simple case of uploading all the files onto the new server. I've managed to upload the site and it works fine... but I can't access the editing pages as it will no longer accept the username and password when I go to login. The host server is running ASP.NET v4 and IIS v7. Hosting is with [URL] so I'm also getting used to their way of doing things.

View 1 Replies

C# - Access WebUserControl DropDown Selected Value Want To Use On 5 Pages?

Sep 5, 2010

I have a dropdown inside a webusercontrol which I want to use on 5 pages. I want to save the selected value of the dropdown from the page. I tried to access it using below method, but its not working[URL]

View 1 Replies

Mobiles :: Detect IPhone / Access To Pages?

Apr 7, 2010

How can i detect if iPhone access to my pages?

For example default.page. When users use iphone to browse default page, it will redirect to iphone default page.

View 3 Replies

Security :: Securing Web Images So Only Pages Can Access Them?

Nov 9, 2010

I only want my web images to be visibleSimpliied, a digital media page pulls html content from a database using SQL security and renders that HTML. That digital media page is secured in that only a returing Paypal transaction user with a matching transaction can access it. But today that HTML content makes references to images on my site, those images can be freely directly over the web.The backend is asp.net 2.0. Would it be possible for me to secure the web folder with my images to some generic user and impersonate access from my pages so that attempts to access images directly fails?f not, any way to solve all that html content on serverside somehow and turn it into something else I can secure?

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved