473,414 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

directory not show in website

57
i have some file which contain in directory(download).
i link some file with this directory.

for example:
i visit http://websitename.com/download/a.pdf
its show. but when i type http://websitename.com/download in addressbar then its go to this link http://websitename.com/ don't show download directory and its contain files.

please help me how to do thsi

thanks
Dec 1 '11 #1
3 1354
canabatz
155 100+
it's probably security problem.

it can be .htaccsee to take you back to the default index.php if he cannot find any thing, or directory permission is not allowing you to see the content of the directory.

you should echo the file path in a loop if there is more files to download.

hope it helps.
Dec 1 '11 #2
omerbutt
638 512MB
my be directory listing is denied and then redirected towards he home page
regards ,
Omer Aslam
Dec 2 '11 #3
johny10151981
1,059 1GB
agreed with Omerbutt and Canabatz, showing directory listing is not a very good idea, it can create security hole.

you better write a script and show the list in a technical way so that user cannot see from what location you are downloading
Dec 2 '11 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: César Leonardo Blum Silveira | last post by:
Hello all, I'm new to this list. How can I detect if a file is a directory or not? Thanks César
11
by: axis | last post by:
I want to do a very simple thing -- hit a website and retrieve the html it gives me (in C#). I have to admit I'm a little lost within the MSDN documentation. The best I can figure is I should use...
1
by: Dave | last post by:
Hi all, I was wondering if anyone has successfully copied a project from their local webserver to an Internet webserver via frontpage extensions. I can copy to my heart's content on a local LAN...
8
by: theWizard1 | last post by:
Using Asp.NET 1.1, and C#. I have a directory for the website, and a directory under it named Secure. I have a web.config in each of the above directories. The web.config in the Secure...
1
by: hp_1981 | last post by:
Hi My website is a web directory like dmoz and yahoo directory. Can I let webmasters or even weblog owners to have a copy of my site, allowing them to present it the way they want to, by...
2
by: Jim in Arizona | last post by:
My goal, somehow, is to populate a dropdownlist with all the user names in active directory. I don't even know where to begin, really. I added a reference to System.DirectoryServices so I could...
11
by: GaryDean | last post by:
We created a "File" website on XP and transferred it over to server2003. Now we want to change it to an HTTP site. Without creating a new project and importing everthing, it there a way to convert...
0
by: onlyfreetemplates | last post by:
Premium website templates for small business free Cool website templates for small business free Free website template downloads! 1000+ directory of website templates Don't pay money for...
5
by: daveh551 | last post by:
What, from a high level point of view, is the difference (in Visual Studio 2005) between Website (accessed with Open Website or Create Website from the StartPage) that is an ASP.NET Website, and a...
0
by: z1freeride | last post by:
I have a c# web browser that points to one website. About 1 out 100 times nothing is displayed. I tried to solve it with a more refined refresh button. Here is what I am doing when I click the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.