473,785 Members | 2,289 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Protect bin folder from direct download

Hello,

My ASP.NET hoster has made a separate folder in my hosting space and
configured it as separate application in IIS. Further, I created "bin"
folder in this directory, and put in my aspx pages that all use code-behind.
All works fine, but I was dismayed finding out that is is possible to write
direct URL to an assembly in the bin folder, and IIS would allow to download
pure code. That's somewhat very worg, isn't it?

What should I tell my hoster to do inorder to fix this? Actually I was
expecting that IIS6 handles this automatically and makes the bin folder
accessible only to CLI, and does not expose it's contents to http requests.

Thanks,

Pavils
Nov 18 '05 #1
1 1955
Actually this is your hoster fault.
In IIS Managment Console they should revoke read permissions from this
folder. So IIS will not serve any file to the browser from that folder.
Those permissions are given only through IIS Managment Console.

Do not mistake them with file "read" permission to IIS account or ASP.NET
account.
IIS must be able to read the DLL and load it into the memory.

George.
"Pavils Jurjans" <pa****@mailbox .riga.lv> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hello,

My ASP.NET hoster has made a separate folder in my hosting space and
configured it as separate application in IIS. Further, I created "bin"
folder in this directory, and put in my aspx pages that all use code-behind. All works fine, but I was dismayed finding out that is is possible to write direct URL to an assembly in the bin folder, and IIS would allow to download pure code. That's somewhat very worg, isn't it?

What should I tell my hoster to do inorder to fix this? Actually I was
expecting that IIS6 handles this automatically and makes the bin folder
accessible only to CLI, and does not expose it's contents to http requests.
Thanks,

Pavils

Nov 18 '05 #2

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

Similar topics

3
1756
by: Lily Kakm | last post by:
I am sorry, may be I have not explain my mind clearly. But I just want a tool like this : It can change the variable name into meaningless ones. I know it will not be safe enough, but I need one. So I ask for help. Thank you !! Robert Kern wrote: >Lily Kakm wrote: >>when I distribute my software, I will give the users .pyc file (maybe I
11
8906
by: LarryM | last post by:
Hi, NB, not to stop capturing the single displayed Image, but to stop downloading the entire image directory. (In my Website you will do a search, and get some thumbnails, and these can be enlarged one by one). This topic seems to be frequent. Some says that you under no circumstances can protect your images, others seem to have preventing solutions.
12
1979
by: Danny | last post by:
Hello how can you protect the .mdb that an asp page modifies? This must be open to all for modifications right? But how can it be hidden so people can't just download it if they guess the path? Thanks
5
2670
by: Brian Madden | last post by:
Hello All, I have what I thought would be a simple problem although I've been searching for a few hours with no luck. I have several PDF and MPG files I would like to provide to users to download via HTTP. I also have a database of user accounts. I would like to protect the PDF and MPG files so that users cannot "save target as" or "view source" to directly link to the files.
6
3549
by: fgarciarico | last post by:
I´m developping an application that needs to show some videos, but in a protected envinroment. Any user must be authenticated to see the videos. But for example, if anyone know the path of the videos, can access directly to this site and download it without authentication. If I write in the location bar the url of a video, I can download without problem because the application cannot test if the user is already authenticated or not. I´ve...
8
2200
by: George | last post by:
VS.NET 2002/VB My IIS permissions and folder settings show Read and Execute only. Why is it that I can use any browser and link directly to my DLL file in my BIN folder on my Web site and download it to my harddrive (as could anyone else who wanted to)? I don't see any other settings in my host's Control Center Panel that will let me set any other properties for those folders. How do I prevent this from happening? Thanks,
5
2120
by: Garry Jones | last post by:
I need to create a page with a password where I show photos. How do I stop people from accessing the jpgs directly without going through the password function. I am using Windows XP and have a website which supports Mysql and php. The end result should be a page where the user can type in a password and access a few pages of thumbnails which can be clicked for enlargements. Garry Jones
1
2541
by: paitoon | last post by:
Helle I have problem about .htaccess in my site. My purpose is i want to protect a folder name's IMAGES in my site then i put .htaccess into that folder. But instead of the IMAGES folder will be protected but i could not open my site at all.seems like it not only protect the IMAGES folder but it protects to open my site also. what should i do ? and what is the actually syntext to do this? I use this systext; AuthUserFile...
4
3125
by: JOHNSHELL08 | last post by:
Dear sir, Please tell me the way to protect folder in usb drive and this will be always protect on every pc. what is the method or it is done by any software ? so please give the software download link or method to protect folder in usb drive i searched it in google but i could not find any solution. so please give the solution Thanks....................
0
9489
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10357
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10162
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10101
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8988
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5396
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5528
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3665
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2893
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.