Machan me wada karana code ekak. mama me dan test kara.
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/dev/new/gtfo.jpg
RewriteCond %{HTTP_REFERER} !^http(s)?://(www\.)?localhost [NC]
RewriteRule \.(jpg|jpeg|png|gif)$ http://localhost:8082/dev/new/gtfo.jpg [NC,R,L]
"http://localhost:8082/dev/new/gtfo.jpg" me part warning image eke URL ekata change karanna.
"/dev/new/gtfo.jpg" kiyana file eka relative to the doc root machan.
---------------------
---------------------------------
Server apache v 2.2.22 (Acquia Dev Desktop), mod_rewrite enabled.