Wrox Programmer Forums
|
ASP.NET 1.x and 2.0 Application Design Application design with ASP.NET 1.0, 1.1, and 2.0.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.x and 2.0 Application Design section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 18th, 2007, 06:08 AM
Authorized User
 
Join Date: Jul 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default Block css/js files

Can I block users from viewing css or javascript files by directly typing the URLs in the browser?

 
Old August 20th, 2007, 02:07 AM
Authorized User
 
Join Date: Jul 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Is it not possible?? Please reply!

 
Old August 20th, 2007, 08:56 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

If you could do this, then you would also prevent the browser from using them as well. Whether the request is coming from a reference in a page or from the user manually entering it in the browser address bar, the server won't know the difference as the request if coming from the browser the same either way.

You can obfuscate the files to make them very difficult to read.

-Peter
 
Old August 20th, 2007, 12:08 PM
Authorized User
 
Join Date: Jul 2007
Posts: 27
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK Thanks! I got it.






Similar Threads
Thread Thread Starter Forum Replies Last Post
External JS files Ben Horne Javascript 3 July 25th, 2008 02:00 AM
CSS & ASCX files not used by IIS 6.0 OldCoder BOOK: Beginning VB.NET Databases 0 March 31st, 2008 04:37 PM
Rich's new CSS book: Beginning CSS 2nd Edition jminatel BOOK: Beginning CSS: Cascading Style Sheets for Web Design ISBN: 978-0-7645-7642-3 0 June 15th, 2007 11:55 AM
How to use .css files with SQL SERVER 2005 reporti bhartiv Reporting Services 0 January 1st, 2007 03:30 AM
External JS Files koneruvijay VS.NET 2002/2003 4 February 27th, 2004 07:28 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.