إنضمامك إلي منتديات استراحات زايد يحقق لك معرفة كل ماهو جديد في عالم الانترنت ...

انضم الينا
استراحات زايد الصفحة الرئيسية


 
 
LinkBack أدوات الموضوع انواع عرض الموضوع
  #1  
قديم 09-13-2010, 02:30 AM
عضو ماسي
بيانات محروم.كوم
 رقم العضوية : 503
 تاريخ التسجيل : Dec 2007
الجنس : female
علم الدوله :
 المشاركات : 2,100,670
عدد الـنقاط :3341
 تقييم المستوى : 2140

Okay i'll make this post quick and to the point...

The URL to an image that is an attachements or in an albums are displayed as

http://url.com/attachement.php?attachmentid=xxx
or http://url.com/albums.php?albumid=xxx

So therefore using the classic .htaccess:

Code:
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://img249.imageshack.us/img249/2806/hotlink.gif [L]
doesn't work as it only blocks those specified extentions (eg. .png) and therefore wont effect an image that is at http://url.com/attachement.php?attachmentid=xxx

There's gotta be something I can do in .htaccess or elsewhere, hopefully without using a mod? I like keeping my software as clean as possible and use as few mods as necessary rather than clutter things up (which is pretty hard at the moment given the current functionability of the CMS - which is another point so i'll leave it at that).

Can anyone help me out?


Also I think this officially serves as some sort of feature request to add a hotlinking option to the admincp.

Thanks

PS. It forced me to choose a prefix
__DEFINE_LIKE_SHARE__
رد مع اقتباس
 

مواقع النشر (المفضلة)


تعليمات المشاركة
لا تستطيع إضافة مواضيع جديدة
لا تستطيع الرد على المواضيع
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

BB code is متاحة
كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة



الساعة الآن 03:35 AM


Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir

RSS RSS 2.0 XML MAP HTML