Re: How to Stop the Image URL in apache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Try the below :
http://stackoverflow.com/questions/18524511/how-can-i-block-direct-access-to-images-in-a-directory-but-allow-php-to-display



On Mon, Jul 28, 2014 at 2:05 PM, Peter <peter@xxxxxxxxxxxxxxxx> wrote:

> On 07/28/2014 08:08 PM, Shital Sakhare wrote:
> > While clicking on the image it opens into the browser. I dont want to
> allow
> > client to open the image in browser as separate url.
>
> Not possible.  There is nothing in the http protocol that differentiates
> between a file being displayed inline inside other content and being
> downloaded separately.  All the webserver knows is that the file was
> requested from the server and it delivers that file.
>
> There are tricks you can do with client-side javascript, or with
> checking the referrer or user agent, etc. but all of them are easy to
> circumvent, and note that regardless of what you do that file has to be
> downloaded in order to be displayed in any capacity.
>
>
> Peter
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux