|
How do I keep people from browsing sub folders on a .net website?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
how about adding a simple index.htm file in each of them?
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Index.html won't do it because it's a .net site. Right now, I'm using a Default.aspx file set in each sub folder.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Authentication and a web.config in the subfolders you want to be protected.
|
|
|
|
|
But the catch is non-ASPNET parseable resources still bypass aspnet_isapi.dll and web.config may not be able to halt them. An IIS level control is required.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
True - but John is working on a .NET site so he's probably got the necessarys right there.
|
|
|
|
|
Check this out http://www.peterprovost.org/archive/2003/05/16/470.aspx[^]
There is also a hidden catch.
But the catch is non-ASPNET parseable resources still bypass aspnet_isapi.dll and web.config may not be able to halt them. An IIS level control is required.
Vasudevan Deepak Kumar
Personal Homepage Tech Gossips
A pessimist sees only the dark side of the clouds, and mopes; a philosopher sees both sides, and shrugs; an optimist doesn't see the clouds at all - he's walking on them. --Leonard Louis Levinson
|
|
|
|
|
Need authentication integration, or something simple?
Theres a couple of free .htaccess solutions kicking around.
If you want the integration have a google for the wildcard mapping in IIS to convince it to push all requests thru the ASP.Net isapi dll...
Messy though... are you sure you can't stream the files out (using URL rewriting if you really need nice paths)? Actually you could probably have a generic handler using URL rewriting to pick the file off disk and stream it out. Messy again though heh.
|
|
|
|
|
Am I missing something? What about the "Directory Browsing" check box in the IIS console properties?
led mike
|
|
|
|
|
You must have forgotten that I'm not using IIS...
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
John Simmons / outlaw programmer wrote: You must have forgotten that I'm not using IIS...
that or I never knew to begin with. What are you using?
led mike
|
|
|
|
|
Hi
I am starting with .net and I wonder how I can load a menu from my resources.
I'm looking for something like CMenu::LoadMenu() of MFC.
thanks
eric
|
|
|
|
|
Hello,
I have created the shared assembly by giving it a strong name and then registring it with gacutil -i TestAssembly.dll
My issue is how can I reffer the shared assembly in the .net applicaiton.
Do I need to browse the path of the dll and add a reference to it? If yes then what shall be this path? The c:\windows\assembly?
Please let me know.
Regards,
Pavas
|
|
|
|
|
mpavas wrote: Do I need to browse the path of the dll and add a reference to it?
No. Just open up the Add References tab in Visual Studio and refer to it in the .NET Assemblies tab. If you've added it properly, it should be visible here.
|
|
|
|
|
How can I get the Assemblies in .NET Assemblies Tab?
I have created a stong name key and then I used the gacutil -i "Path of the Bin\Release\Tetassembly.dll"
Is this correct?
Regards,
Pavas
|
|
|
|
|
If the assembly has been installed correctly, the item in question should just show up in the list without any interaction from you. If not, then you've got some kind of problem with your assembly.
Yes, the command line you used to install the assembly is correct. If you've installed a bad assembly, then tried reinstalling a new one without removing the original, you might run into a problem. In that case, try uninstalling the assembly first, then reinstalling it. If that doesn't work, try adding the /f switch to the command line to force a reinstall without regard to the same assembly name already being installed, essentially, overwriting the registration details.
|
|
|
|
|
thanks will try this out
Regards,
Pavas
|
|
|
|
|
Hi,
I have the following problem: have a splitcontainer with horizontal orientation. The application saves the current settings of the user interface including the splitter distance when the form is closed. When the form is load up the settings should be restored. The problem I have is that everytime the form is loaded the splitter is not positioned correctly. Everytime a value is added to the original value of saved one. I figured it out that if I don't set the splitcontainer's dock propery to "fill" and I don't set the anchor property to "bottom", everything is working fine.
Any suggestion is really appreciated.
|
|
|
|
|
Hello everyone!
I know that System.Web is obsolete, but I can't use System.Net. becouse MS update for System.Net does't work for me.
So I have to use System.Web.Mail.MailMessage instead. It works fine. But when I try to attach file with
mailMessage.Attachments.Add(new System.Web.Mail.MailAttachment(Settings.Default.LicenseFilesStore + licenseFilePath));
My e-mail simply could't be delivered
Could someone please provide me with an advice. M.b. suggestion to download & use some custom developed smtp class.
Thanks in advance.
|
|
|
|
|
ZenyukIV wrote: becouse MS update for System.Net does't work for me.
And why's that?
ZenyukIV wrote: My e-mail simply could't be delivered
Was there any return message?? Some kind of error message?? Anything on the recipients end at all??
|
|
|
|
|
Dave Kreskowiak wrote: And why's that?
I don't know why MS update for System.Net does't work for me. So I use System.Web
Dave Kreskowiak wrote: Was there any return message?? Some kind of error message?? Anything on the recipients end at all??
Return message - "protocol is unknown"
Exception data - "System.Collections.ListDictionaryInternal"
Nothing on the recipients with attached file. But works well without attachment.
Thanks for help
|
|
|
|
|
Thanks for everyone.
I've refused using System.Web namespace becouse I've solved the problem with System.Net
The problem was pretty stupid. I've downloaded update for Framework 2.0 link[^] and installed it to ALL CUSTOMERS' PCs.
|
|
|
|
|
hi everybody
i have created a project in asp.net 2.0 having crystal
reports when i creates a setup in mine machine and then installs it then it works fine.while same setup when i runs in other machine i.e machine2
then it showa a error message that assembly named crystaldecision.enterprise.framework is not loaded.
so mine question is how to add this assembly in mine setup so that it run smoothly in all machines.
|
|
|
|
|
Hi all,
i do have a question of exe's , can we place exe's in GAC like dlls
If there is anyway please let me know
Thanks
sri
|
|
|
|
|
Just wondering what the exe is going to do in GAC. Since GAC is ment for sharing assembilies.
Thanks
Laddie
Kindly rate if the answer was helpful
|
|
|
|