Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 09-21-2005, 08:56 AM deny direct access
Novice Talker

Posts: 10
Trades: 0
hi
on my website i have a folder like this
mysite.com/upload

and in the upload folder i have many folders. i want to deny direct access to all the folders that are in teh upload folder. if u want something then go through my site.

any one know how i can do this
usman is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-21-2005, 10:55 AM
Miki's Avatar
Skilled Talker

Posts: 72
Name: Michael Stubbs
Location: Warrington, UK
Trades: 0
It is possible. There is code for it. I just dont know the code.

I'll have a quick nose around, see what I can find.

Last edited by Miki; 09-21-2005 at 11:05 AM..
Miki is offline
Reply With Quote
View Public Profile
 
Old 09-21-2005, 11:10 AM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
If your apache has mod_access installed (very likely) then you can use that...

http://httpd.apache.org/docs/1.3/mod/mod_access.html
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 09-22-2005, 06:42 AM
Novice Talker

Posts: 10
Trades: 0
thanks for your replies. both of you. but lets assume i am a duffer and u have to teach me how to do this. i cant understand a bit with mod_access. can u plz give me instructions on what to do.

Thanks
usman is offline
Reply With Quote
View Public Profile
 
Old 09-22-2005, 05:37 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
Create a .htaccess file with that directive in it and place it in your root directory.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 09-23-2005, 01:02 AM
Novice Talker

Posts: 10
Trades: 0
I already have a .htaccess file by default on many locations in my site. i am new to apache and phpnuke. i have to place a .htaccess file in the mysite.com/.htaccess bcoz my upload folder is in mysite.com/upload but i just dont know what code i have to put on it. OHH PLZZZZZZ can u post the code that i should put in the htaccess file.

Thanks for any help and plz help me out on this.
usman is offline
Reply With Quote
View Public Profile
 
Old 09-23-2005, 06:16 AM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
Code:
<Directory /upload>
  Order Deny,Allow
</Directory>
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to deny direct access
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.62719 seconds with 12 queries