Reply to Re: php and auth

Your name:

Reply:


Posted by l3vi on 12/05/06 07:48

That will not do you any good as the hotlinkers will just link to your
php script.

Something like this probably will work better for you.
http://www.boogybonbon.com/2006/07/06/stopping-hotlinkers-with-php/

The above method can be converted to work with just about any file
type.

You can do the htpasswd with htaccess and php can then bypass and get
the files via file_get_contents, etc.

Cheers,
Levi

*Davide* wrote:
> Hello,
> I created 2 users under Apache and naturally they have access to the
> respective directory.
> In this way, it's not possible to access directly to the content (images,
> pdf, and so on) changing the path from the browser.
> I would know if is it possible from PHP bypass the box that appear (you
> should provide username and password of those 2 apache users), I would set
> username and password from PHP.
> Thanks
>
> Davide

[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

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