473,396 Members | 1,997 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,396 software developers and data experts.

restrict browse access to folder by php

hiii,
i want to know , is there any script in php to restrict browse access to a folder
because it would b helpful a lot..
if anyone know please help me..
Nov 22 '07 #1
6 1998
Markus
6,050 Expert 4TB
hiii,
i want to know , is there any script in php to restrict browse access to a folder
because it would b helpful a lot..
if anyone know please help me..
Be more specific. Are you asking about a page where only registered members can access?
Nov 22 '07 #2
Be more specific. Are you asking about a page where only registered members can access?
no i mean is there any program so that .,,in the browser by specifying the folder's path, it will not display the files it contains & gives message " restricted acces "
Nov 22 '07 #3
Markus
6,050 Expert 4TB
no i mean is there any program so that .,,in the browser by specifying the folder's path, it will not display the files it contains & gives message " restricted acces "
Oh i see!

You can use a .htaccess file and then specify the file and you can redirect the browser to a specific other page e.g. restrictedaccess.php

:)
Nov 22 '07 #4
maheswaran
190 100+
Hi ,
Use like this

RewriteEngine on
RewriteRule ^log.txt$ $
RewriteRule ^ContactusFile.txt$ $

specify like above example, save this file as .htaccess
Nov 27 '07 #5
Hi ,
Use like this

RewriteEngine on
RewriteRule ^log.txt$ $
RewriteRule ^ContactusFile.txt$ $

specify like above example, save this file as .htaccess
thanks for reply..i will try it..
Nov 27 '07 #6
jd1698
1
@maheswaran
Hi

I writing a system for a dozen users they each have their own login area and I want them to be able to upload files they have in their /usr/name folder into a common area and not see other folks' efforts
so I've got this in php

printf ('<tr> <td> <label for="uploadFile">File to upload </label> </td>');
printf('<td> <input type="file" name="uploadFile"> </td> </tr> ');

I created the above suggestion using ' vi .htaccess ' and put the file in /opt/lampp/htdocs but then when I press browse I can see all of the files on the system.

any help appreciated

Jim
Oct 30 '12 #7

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

Similar topics

6
by: mscir | last post by:
I just installed ASP after a couple of years of not using it, PWS Win 98 SE. A couple of things are throwing me, and I can't remember whether these worked in the past. One is I can't...
4
by: Dave N | last post by:
I want to programatically open the Access "File" "Open" browse box to search for a file. When it is selected I wnat to have it put the path in a text box so it can be added to a list box.
5
by: DD | last post by:
I have been on VBnet and used the Browse for Folders Dialog code, i have two problems 1.Access keeps telling me that the Unload Me is an unknown. 2. What i really want is to open the dialog go...
5
by: deko | last post by:
I'm using the below code to allow users to browse for and select a folder. After selecting a folder from the dialog, the full path is returned to a text box and saved. The next time the user...
5
by: Eric Twietmeyer | last post by:
Hi, Does anyone know why starting with VS.NET 2002 (and same with 2003) it is no longer possible to browse to a directory that has "ept" as part of the path? It worked fine in Vc 6.x. My...
4
by: Larry Brindise | last post by:
I have an asp.net application. I have used VStudio Web Deployment Project to create the MSI file. I copy the MSI file from my developer PC to my test server running Win2003Server Web Edition. I...
2
by: Lyle Fairfield | last post by:
I am using Microsoft’s Web Browser Control embedded on an Access Form to browse a specific site. I have a good reason for doing so; the pages on this site run code which aborts their display unless...
4
by: rdemyan | last post by:
I'm using code from the following web page to open the API Browse Folder dialog http://www.mvps.org/access/api/api0002.htm It all works fine. But if the dialog box is open and the user closes...
5
by: gracepaul | last post by:
hi, I had created a web application in c#. It is uploaded and going smoothly. Now the request of the client is to restrict the access of their site. They want access only in some machines(Not in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
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
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,...
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,...

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.