473,396 Members | 1,714 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Restrict aspx page access only through application


Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any other
browser. It should only be accessible through my application.

Please help.

Anish

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
Nov 19 '05 #1
3 1654
Luis Esteban Valencia wrote:
Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any
other browser. It should only be accessible through my application.

Please help.

Anish


Check the browser agent (Request.ServerVariables("http_user_agent")
in the Page_Load event, and show an error message when it's not
your browser.

You'll have to copy this code to each aspx page,
but you could also create a user control for that, and drop
it on each page.

--

Riki
Nov 19 '05 #2
Thanks

--
LUIS ESTEBAN VALENCIA
MICROSOFT DCE 3.
MIEMBRO ACTIVO DE ALIANZADEV
http://spaces.msn.com/members/extremed/
"Riki" <ri**@nospam.com> escribió en el mensaje
news:eO****************@TK2MSFTNGP12.phx.gbl...
Luis Esteban Valencia wrote:
Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any
other browser. It should only be accessible through my application.

Please help.

Anish


Check the browser agent (Request.ServerVariables("http_user_agent")
in the Page_Load event, and show an error message when it's not
your browser.

You'll have to copy this code to each aspx page,
but you could also create a user control for that, and drop
it on each page.

--

Riki

Nov 19 '05 #3
Hello Riki,

Why would you not create a single base Page class that each "protected" page
would inherit from?

This beats adding a control to a page, or copying the code.

--
Matt Berther
http://www.mattberther.com
Luis Esteban Valencia wrote:
Hi,

I am using a webbrowser control to access apsx pages in my vb.net
application. I want to block these aspx pages viewing through any
other browser. It should only be accessible through my application.

Please help.

Anish

Check the browser agent (Request.ServerVariables("http_user_agent") in
the Page_Load event, and show an error message when it's not your
browser.

You'll have to copy this code to each aspx page,
but you could also create a user control for that, and drop
it on each page.

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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...
5
by: Jay McGrath | last post by:
Does anyone know if it is possible to prevent a user from accessing the tables in an MDE file? I can go to my start-up menu and limit access to various functions, etc. I could even disable the...
28
by: gc | last post by:
Hi, What is the purpose of the restrict keyword? gc
7
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...
14
by: Mark B | last post by:
Our webhost (www.usbusinessweb.net) had a W2K IIS5 server crash after a scheduled hard-boot occurred during a ms-security patch install overnight. They couldn't get the server working again so they...
5
by: toddles666 | last post by:
Hi- Is there any way of restricting access to a database by application & account? For example, I only want the application APP1 to access the database using the USER1 account. I've tried to...
5
by: c676228 | last post by:
Hi, I guess I am confused. In aspx script, I mean (you won't use Codebehind="enrollinfo.aspx.vb", but mix code with html and code together) You can access user control's property directly. Since I...
3
by: =?Utf-8?B?R1ROMTcwNzc3?= | last post by:
Hi there, I've got the standard Dreamweaver restrict access to page behaviour below – <% ' *** Restrict Access To Page: Grant or deny access to this page MM_authorizedUsers="1,2,3"...
11
by: =?Utf-8?B?UGV0ZXIgSw==?= | last post by:
I am working with Visual Studio or alternately with Expression Web. I need to create about 50 aspx pages with about 1200 thumbnali images, typically arranged in three to four groups per page,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.