The scenario appears like this, state that I've got a website that consists of some images. I wish to allow individuals to embed them on their own site, however i should also redirect when anybody attempts to access the look directly.

One choice is this

RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www\.)?imgzzz.com/.*$ [NC]
RewriteRule i/image_(\d+)\.(jpg|gif) - [F]

which may deny any access from elsewhere compared to site, but that does not allow embedding the look.

The 2nd choice is to ommit the 2nd RewriteCond departing only

RewriteCond %{HTTP_REFERER} !^$
RewriteRule i/image_(\d+)\.(jpg|gif) - [F]

Which enables embedding, however the user can continue to access the look if he's comming from elsewhere than the usual bookmark.

Can there be in whatever way to create embedding available and simultaneously doing redirect on direct accessibility image?

This is a solution

RewriteCond %{HTTP_REFERER} !^http://(www\.)?imgzzz.com/.*$ [NC]
RewriteRule i/image_(\d+)\.(jpg|jpeg|gif) pic/$1 [L]

No. It is simply a request to some URI, be it a part of a webpage or just being utilized directly, the server can easily see simply no difference.

We-e-ell, okay, I suppose you can theoretically, possibly, perform some crazy hackery with php &lifier javascript, however i can't view it being well worth the hassle, also it would not be reliable either. On the other hand, it is simply a request, and you've got not a way of discerning the way it came from. It'd also disrupt the way in which how many people browse, i.e. individuals who prefer to open images in new home windows &c. I suppose I understand what you want to achieve (rather than a picture, you want to serve a webpage with a few data together with the look to own content plus you site more visibility), and I am inclined to agree it is a valid idea, but image search engines like google already do this stuff.

Basically needed to choose, I'd opt for second item, it's permissive enough to permit normal browsing, and would disallow exterior links towards the images.