Reply to Re: how can you use flash files while NOT allowing users to get those files?

Your name:

Reply:


Posted by Andy Hassall on 01/13/06 21:15

On Fri, 13 Jan 2006 14:01:20 -0500, "Notgiven" <notreallyme@invalid.invalid>
wrote:

>I added an .htaccess file to the directory which disallowed access to:
> /directory/
>
>but I could still access
> /directory/files.gif

Looks like you need to post to alt.apache.configuration for the .htaccess file
then.

>I want to prevent someone stealing my flash files.
>
>I can put it in a directory outside the web root but having trouble making
>that work. The fiels are not displayed. Here's the directory structure I
>used for that effort:
>
> /d1
> /d1/images/file.swf
> /d1/www/site1(webroot)/d3/page.php
>
>Page.php needs to display file.swf in the directory structure above.

Then it needs to be in the web root, or a separate PHP script needs to output
its contents. You can't allow users to view a file without downloading it. Who
are you protecting this from? Who is allowed to view the file?

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация