Re: Is there a way to prevent /static directory browsing?

2012-02-06 Thread Robert Steckroth
Thanks much guys. +1 Django community.

On Mon, Feb 6, 2012 at 9:59 AM, Denis Darii  wrote:

> Under nginx you can set "autoindex" to "off" for "/static/" location:
>
> location /static/
> {
> autoindex off;
> root /path/to/your/static/;
> }
>
> More info here: http://wiki.nginx.org/HttpAutoindexModule
>
> On Mon, Feb 6, 2012 at 3:53 PM, Robert Steckroth <
> robertsteckr...@gmail.com> wrote:
>
>> Hey Guys, I am looking for a way to hide my media files from
>> direct access. What is the common practice here?
>> If one would browse to http://www.example.com/static in one of my Django
>> sites there would be
>> a list of all the files used therein. Is there a way to hide/prevent this
>> url from having a directory tree?
>>
>> --
>> Bust0ut Surgemcgee  ---
>> BudTVNetwork.com
>> RadioWeedShow.com
>> PBDefence.com
>> "Bringing entertainment to Unix"
>> "Finding the exit without looking"
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To post to this group, send email to django-users@googlegroups.com.
>> To unsubscribe from this group, send email to
>> django-users+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/django-users?hl=en.
>>
>
>
>
> --
> This e-mail and any file transmitted with it is intended only for the
> person or entity to which is addressed and may contain information that is
> privileged, confidential or otherwise protected from disclosure. Copying,
> dissemination or use of this e-mail or the information herein by anyone
> other than the intended recipient is prohibited. If you are not the
> intended recipient, please notify the sender immediately by return e-mail,
> delete this communication and destroy all copies.
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
Bust0ut Surgemcgee  ---
BudTVNetwork.com
RadioWeedShow.com
PBDefence.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is there a way to prevent /static directory browsing?

2012-02-06 Thread Denis Darii
Under nginx you can set "autoindex" to "off" for "/static/" location:

location /static/
{
autoindex off;
root /path/to/your/static/;
}

More info here: http://wiki.nginx.org/HttpAutoindexModule

On Mon, Feb 6, 2012 at 3:53 PM, Robert Steckroth
wrote:

> Hey Guys, I am looking for a way to hide my media files from
> direct access. What is the common practice here?
> If one would browse to http://www.example.com/static in one of my Django
> sites there would be
> a list of all the files used therein. Is there a way to hide/prevent this
> url from having a directory tree?
>
> --
> Bust0ut Surgemcgee  ---
> BudTVNetwork.com
> RadioWeedShow.com
> PBDefence.com
> "Bringing entertainment to Unix"
> "Finding the exit without looking"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>



-- 
This e-mail and any file transmitted with it is intended only for the
person or entity to which is addressed and may contain information that is
privileged, confidential or otherwise protected from disclosure. Copying,
dissemination or use of this e-mail or the information herein by anyone
other than the intended recipient is prohibited. If you are not the
intended recipient, please notify the sender immediately by return e-mail,
delete this communication and destroy all copies.

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: Is there a way to prevent /static directory browsing?

2012-02-06 Thread Cherian Thomas
Direct your webserver to prevent this. .htaccess/conf in apace. Directory
browsing is disabled by default in nginx
http://www.ducea.com/2006/06/26/apache-tips-tricks-disable-directory-indexes/


Regards,
Cherian



On Mon, Feb 6, 2012 at 8:23 PM, Robert Steckroth
wrote:

> Hey Guys, I am looking for a way to hide my media files from
> direct access. What is the common practice here?
> If one would browse to http://www.example.com/static in one of my Django
> sites there would be
> a list of all the files used therein. Is there a way to hide/prevent this
> url from having a directory tree?
>
> --
> Bust0ut Surgemcgee  ---
> BudTVNetwork.com
> RadioWeedShow.com
> PBDefence.com
> "Bringing entertainment to Unix"
> "Finding the exit without looking"
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-users@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Is there a way to prevent /static directory browsing?

2012-02-06 Thread Robert Steckroth
Hey Guys, I am looking for a way to hide my media files from direct access.
What is the common practice here?
If one would browse to http://www.example.com/static in one of my Django
sites there would be
a list of all the files used therein. Is there a way to hide/prevent this
url from having a directory tree?

-- 
Bust0ut Surgemcgee  ---
BudTVNetwork.com
RadioWeedShow.com
PBDefence.com
"Bringing entertainment to Unix"
"Finding the exit without looking"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.