Can a user browsing my web site read my web.config or Global.asax files? - preCharge Forums
It shows that you are unregistered. Please register with us by clicking Here
preCharge Forums


Nav Green LeftNav Right
preCharge Forums > Website Design & Development > Programming > .NET » Can a user browsing my web site read my web.config or Global.asax files?


Reply
Tcat Right
 
LinkBack Thread Tools Display Modes Tcat Right
Old 08-01-2006   #1 (permalink)
agaba175
Banned User
 
Join Date: Jul 2006
Location: India
Age: 29
Posts: 105
Default Can a user browsing my web site read my web.config or Global.asax files?

Can a user browsing my web site read my web.config or Global.asax files?
agaba175 is offline   Reply With Quote


Old 08-03-2006   #2 (permalink)
Nazir
Member
 
Join Date: Jul 2006
Age: 47
Posts: 45
Default Re: Can a user browsing my web site read my web.config or Global.asax files?

No. The <HTTPHANDLERS>section of Machine.config, which holds the master configuration settings for ASP.NET, contains entries that map ASAX files, CONFIG files, and selected other file types to an HTTP handler named HttpForbiddenHandler, which fails attempts to retrieve the associated file. You can modify it by editing Machine.config or including an section in a local Web.config file.

Here are the relevant statements in Machine.config:
<add verb="*" path="*.asax" type="System.Web.HttpForbiddenHandler, ... />
<add verb="*" path="*.config" type="System.Web.HttpForbiddenHandler, ... />

Nazir is offline   Reply With Quote

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which site you use for store files and photo? tychicus Hosting 21 08-06-2007 07:52 AM
global warming Geen Engel All Things General 11 08-09-2006 03:12 PM
predefined sections in web.config Tom Tom .NET 0 07-11-2006 10:40 PM
How to declared the Global variables in web.config in asp.net ? gage .NET 3 07-10-2006 04:53 AM
Global eTalk Craig Marketing 4 02-01-2006 11:59 PM


footer left
All times are GMT. The time now is 04:14 AM.

DISCLAIMER: preCharge Risk Management is not responsible for any opinions, advice or comments expressed on the preCharge Community Forums.
preCharge® is a registered trademark of preCharge Risk Management | chargeback protection | Merchant Account Blog

Powered by vBulletin
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 RC6

Cheap Car Insurance | Loans | Loans | Loans | MPAA

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49