I want to deny acess the directory & sub-directories of:

mysite.com/uploads/

The uploads directory has sub-directories such as:

mysite.com/uploads/35

&

mysite.com/uploads/35/83
mysite.com/uploads/35/83_a

I need to deny access to all of these. I can use the typical htaccess methods to do this except that new sub-directories get added all the time so I would have to manually add a new rule evetime.

Is there a way to create an htaccess rule that denys access to the uploads folder and all sub-directories (that is NOT a script calling for access).

I have search Google for hours and found nothing that will work for my siutation.

Thanks in advacne.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.