با اين روش مي توانيد از کپي شدن تصاويري که در سايت آپلود کردين، در سايت هاي ديگر جلوگيري کنين و اينکار باعث ذخيره شدن زيادي از مقدار پهناي باند سايتتون ميشه.
فايل htaccess. رو باز کنيد و کد زير رو پس RewriteEngine On قرار دهيد:
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{REQUEST_URI} !^/stolen.jpg [NC]
RewriteRule \.(gif|GIF|jpg|JPG)$ http://yourdomain.com/theif.jpg [R]
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteCond %{REQUEST_URI} !^/stolen.jpg [NC]
RewriteRule \.(gif|GIF|jpg|JPG)$ http://yourdomain.com/theif.jpg [R]
توجه: بجاي yourdomain.com در کدهاي بالا، آدرس دامنه ي سايتتون رو وارد کنيد.
حالا بايد عکسي به نام theif.jpg درست کنين و توش هرچي ( مثلاً کپي کاري کاره بديه

اگر نميخواهيد براي اون سايت، عکسي ( theif.jpg ) به نمايش در بياد و فقط يه علامت ضربدر قرمز بياد، بجاي تمامي کدهاي بالا، کدهاي زير رو قرار دهيد:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|bmp|BMP)$ - [F]
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://yourdomain.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com/.*$ [NC]
RewriteRule .*\.(gif|GIF|jpg|JPG|bmp|BMP)$ - [F]
مشکلي بود در انجمن و سوال يا نظري بود در قسمت نظرات مطرح کنين.

موفق باشيد
