Re: [CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Valeri Galtsev
There is sort of fundamental question: is the image delivered to my machine? Yes, as it is displayed within some other content. And as it is on my machine I will be able to save it as a separate file. Then, what's the point of blocking "direct URL"? Thanks. Valeri On Mon, July 28, 2014 3:59 am,

Re: [CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Peter
On 07/28/2014 09:03 PM, Shital Sakhare wrote: > Thanks Peter, > > But I get it resolved. The setting is in Apache server itself. By adding > rewrite rule into apache or .htaccess. Below is the code and it worked. > > RewriteCond %{HTTP_REFERER} !^%{HTTP_HOST}$ [NC] > > On Mon, Jul 28, 2014 at 2:

Re: [CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Mihamina Rakotomandimby
On 07/28/2014 12:03 PM, Shital Sakhare wrote: > > RewriteEngine On > Options -Indexes > RewriteBase / > RewriteCond %{HTTP_REFERER} !^%{HTTP_HOST}$ [NC] > RewriteRule \.(swf|gif|png|jpg|doc|xls|pdf|html|htm|xlsx|docx)$ [R,L] > This can be worked arround very easy with wget: http://www.askapache.c

Re: [CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Shital Sakhare
Thanks Peter, But I get it resolved. The setting is in Apache server itself. By adding rewrite rule into apache or .htaccess. Below is the code and it worked. RewriteEngine On Options -Indexes RewriteBase / RewriteCond %{HTTP_REFERER} !^%{HTTP_HOST}$ [NC] RewriteRule \.(swf|gif|png|jpg|doc|xls|pd

Re: [CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Gopu Krishnan
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 wrote: > On 07/28/2014 08:08 PM, Shital Sakhare wrote: > > While clicking on the image it opens into the browser. I

Re: [CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Peter
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 o

[CentOS] How to Stop the Image URL in apache

2014-07-28 Thread Shital Sakhare
Hi, 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. I have blocked the /image/ directory from access/listing , but the image is opening. ex. http://example.com/images/1.jpg . The image should not open in browser with