Shareittips.com

Computer & IT Tips By Akash Padhiyar

In this post i will show you how to restrict your web app so that .txt (whatever file extensions you want ) files can not be downloaded.
Open your web.config file and register following setting in your web.config

<system.web>
<httpHandlers>
<add verb=”*” path=”*.txt” type=”System.Web.HttpForbiddenHandler” />
</httpHandlers>
</system.web>

Akash Padhiyar

I am Akash Padhiyar Founder of Shareittips.com,BCA MCA Tutor ,Running Web development compnay "AkashInfoTech".

More Posts - Website - Facebook

Share
Categories: Asp.Net

Leave a Reply


Google Search

Popular Posts

bigrock-promocode

Bigrock Hosting Prom

Bigrock Hosting PromoCode October 2016 HOSTING FEST! Flat 40% Off! Festivities ...

bigrock-promocode

DotCom Domain Name a

DotCom Domain Name at Rs.99 Bigrock .Com Promocode end date for ...

Web Designer vs Web

This Infographic explain you what is role of Web Designer and ...

Sponsors