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

CakePHP .htaccess

I am having a problem with a project I am working on at the minute.

Basically, I have a site set up with multiple levels of user access. This is all working fine, but there are a lot of files uploaded through the media plugin, which I want to protect from unauthorized users. The problem is, if the user knows the directory and name of a file, they can put that into the browser and the file will open (without authorization).

I was thinking about using .htaccess to protect the folder, and have a PHP script automatically log authorized users through the apache login, but I have no idea where to start, and can't seem to find any useful information by Googling. I am fairly new to htaccess, so any advice would be useful.

The other option I can see is to use htaccess for all security instead of the current login system, but I can't find information on multiple levels of security this way.

Any information would be greatly appreciated. Thanks in advance.
Feb 10 '12 #1
0 1167

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

Similar topics

0
by: PHPBABY3 | last post by:
Need Consultant to Help with CakePHP Hey, I know PHP but need to learn CakePHP right away. Where's the best documentation? Looking for a consultant to help via phone, email or chat. p h...
0
by: grezlik | last post by:
Hi! I have major problems with cakephp & smarty, (cake ver is 1.2 and smarty 2.6.18 ) there is a code (from cake/libs/view/view.php class SmartyView { .. .. ..
6
by: aadsaca | last post by:
Hi, I just want to know about how to make a program using CakePHP with EXTJS. Like displaying database contents with EXTJS' cool tables you know tnx, arjel
3
by: Animesh K | last post by:
Hello All: After having some experience with PHP, I am thinking to use one of the frameworks for my website. CakePHP looks promising (among others). Cake requires some .htacess settings and I...
3
by: jerrystar | last post by:
how to learn cakephp. where to get cakephp step by step tutorial
0
by: arunj82 | last post by:
Hi All, I am doing a project in cakephp. What my problem is when ever i close my browser and when i reopen it, session id(i.e userAgent) in cakephp is not changing. I want to use this session id...
2
by: buzzy18 | last post by:
Hi all, I am using CakePHP to develop a bidding site. I have created a controller called 'daemons' and it performs 4 different tasks which I need to run continuously on the server every minute. I...
1
by: ahmed mahmoud | last post by:
Hi I am using cakephp on linux ,and using xampp. I am trying to excute bake cake command: and this screen appear to me the problem when i select c: these warning and errors appear to me
0
by: mohan lal | last post by:
Hi.. How can i use mysql transaction in cakephp (Without using saveAll() method)? i am using cakephp version 1.2 i have searched a lot but did not get any good example If anyone knows please help...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.