Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Török Alpár
2009/1/19 R B > I like this apache solution, but if i put > > SetEnvIf Referer "^http://www.yourdomain.com"; local_referal > > Then i can access the file putting this path in the URL: > > http://www.yourdomain.com/xyz/scriptfile.php > And i don´t want the script to be access by the url. That is

Re: [PHP] PHP and Apache configuration

2009-01-19 Thread R B
I like this apache solution, but if i put SetEnvIf Referer "^http://www.yourdomain.com"; local_referal Then i can access the file putting this path in the URL: http://www.yourdomain.com/xyz/scriptfile.php And i don´t want the script to be access by the url. That is the main problem. Thanks O

Re: [PHP] PHP and Apache configuration

2009-01-19 Thread ceo
I doubt that you can use re-direct and do what you want, since a re-direct does just that: re-direct the USER to the URL. What you *could* do is get rid of the re-direct and just include('scriptfile.php'); by using ForceType on imagefile.jpg to be application/x-httpd-php Then scriptfile.

Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Kyle Terry
On Mon, Jan 19, 2009 at 11:38 AM, Richard Heyes wrote: > > ... > > This may be of some help. It's from the Apache website and only allows > access if the Referer header is sent by the browser and is > www.yourdomain.com, ie. Direct access is not permitted: > >

Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Richard Heyes
> ... This may be of some help. It's from the Apache website and only allows access if the Referer header is sent by the browser and is www.yourdomain.com, ie. Direct access is not permitted: ### SetEnvIf Referer "^http://www.yourdomain.com"; local_referal

Re: [PHP] PHP and Apache configuration

2009-01-19 Thread Kyle Terry
On Mon, Jan 19, 2009 at 11:28 AM, R B wrote: > Hello, > > I need that every time someone access one image file in my server, then > redirect to a php file. > > I make this well with: > > Redirect 301 imagefile.jpg scriptfile.php > > But i need that the file scriptfile.php can only be accessed by

[PHP] PHP and Apache configuration

2009-01-19 Thread R B
Hello, I need that every time someone access one image file in my server, then redirect to a php file. I make this well with: Redirect 301 imagefile.jpg scriptfile.php But i need that the file scriptfile.php can only be accessed by this redirect command. If someone try to access directly from