النتائج 1 إلى 11 من 11

الموضوع: كود أو ملف مستعد أدفع فيه 100$

  1. #1

    كود أو ملف مستعد أدفع فيه 100$



    السلام عليكم

    اهو ملف او كود او اعداد لملف الأباتشي وهو يمنع استخدام اي رابط خارج الموقع او بمعنى اصح انا اللى احدد نوع الامتداد مثلا عندي صور بامتداد
    gif


    اقوم باضافة هذا الامتداد داخل الاعداد او الملف ويقوم بمنعها ومن يحاول اخذ الرابط تظهر له صفحة خطأ او لاتظهر الصوره


    الأمتدادات المطلوب قفلها هي
    gif
    jpg
    bmp
    ram
    wav
    mp3

    تحياتي لكم





    kalifa غير متواجد حالياً


  2. #2
    عضو فعال
    تاريخ التسجيل
    Jun 2003
    المشاركات
    1,364


    السلام عليكم ورحمة الله

    اخوي خليفه اللي فهمت منك كيفية حماية صور موقعك

    وهي ان تتبع الطريقه هذه :

    شرح طريقة منع أخذ روابط الصور والملفات من موقعك إلى موقع أخر
    يجب أن يتوفر للموقع لوحة تحكم cpanel
    من لوحة التحكم إبحث عن التالي:




    تابع الخطوات



    الخطوه الاخيره



    وبالتوفيق

    والشكر موصول لمبدعنا واستاذنا الم الامارات

    تحيات اخوك الوافي





    __________________
    شبكة الوافي التطويرية
    في خدمتكم دائماً لتطوير منتدياتكم ومواقعكم ..
    http://www.vbulletin4arab.com
    شبكة الجوارس العربية
    شبكة عربية تضم كل ما يفيد المستخدم العربي ..
    http://www.aljawariss.net
    الوافي غير متواجد حالياً

  3. #3

    اشكرك على هذا الشرح



    جربتها ولكن غير فعالة 100% على الملفات الصوتيه والصور مره تكون فعاله مرات لا





    kalifa غير متواجد حالياً

  4. #4
    عضو نشيط جدا
    تاريخ التسجيل
    Jun 2003
    المشاركات
    356


    السلام عليكم ورحمة الله وبركاته

    في درس الأخ KaTTaN حفظه الله في درس "كل ما يمكنك فعله بملف htaccess"

    على الرابط التالي

    http://www.swalif.net/softs/showthre...threadid=55232

    هناك أمر تستطيع أن تستخدمه لعمل الذي طلبته
    ...................................................................
    حماية الباندويث في الموقع من الاستهلاك الخارجي

    ربما لاحظت في كثير من الأحيان وصلات لصور أو ملفات في موقعك في مواقع أخرى .. وهذا بالطبع قد يتسبب بإيذاء موقعك لأنه سيستهلك الكثير من الباندويث المخصص لك شهريا ..
    اذاُ كيف أجعل عرض الصور التي في موقعي لا تتم إلا من خلال الموقع نفسه ..؟ وكذلك تحميل الملفات ..؟

    الحل أيضا هنا يكون باستخدام أوامر ملف htaccess.
    لحجب الصور عن الظهور في موقع غير موقعك استخدم الكود التالي :
    كود:
    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} ^$ [OR] 
    RewriteCond %{HTTP_REFERER} !^http://site/.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www/.site/.com/.*$ [NC] 
    RewriteRule .*\.([jpg|gif|jpe?g]+)$ - [NC,F]
    لاحظ أن هذا الكود يحجب كل وصلات الصور الخارجة من موقعك .. ويمنعها من الظهور إلا في موقعك سواء كان :

    http://site.com
    أو
    http://www.site.com

    فقط عدل الكود السابق وضع مكان site اسم موقعك ..
    والدالة الأخيرة في الكود RewriteRule هي لتحديد لاحقات الصور المراد منعها .. ويمكنك الزيادة عليها كما ترغب ..
    وأيضا إضافة لاحقات الملفات التي تريد منع تحميلها من موقعك كالملفات المضغوطة zip , rar .. أو اللاحقات التنفيذية .. exe ..
    وبذلك لن يتمكن أحد من وضع وصلة في موقعه لبرنامج عندك في الموقع .. وإذا فعل ذلك فلن يعمل معه الرابط .. وعلى الزائر التوجه إلى موقعك والتحميل منه مباشرة...

    .........................................................................

    أتمنى أن يكون هذا ماتبحث عنه
    وآسف على التقصير اذا بدر مني





    أمير الظلام غير متواجد حالياً

  5. #5


    الموضوع اللى ذكرته يعمل بنفس طريقة الأخ alwafi

    وجربتها يدوي من زمان وكان اللى مركبها لي شخص سعودي وكانت فعاله ولكن ليست 100%


    ارجوا من لديه المقدره على انشاء برامج او كود مايخرش الميه وفعاليتة 100000% يبلغنا





    kalifa غير متواجد حالياً

  6. #6
    عضو نشيط جدا
    تاريخ التسجيل
    Jun 2003
    المشاركات
    356


    إن شاء الله الاخوان راح يساعدونك






    أمير الظلام غير متواجد حالياً

  7. #7


    فوق





    kalifa غير متواجد حالياً

  8. #8


    نرفع السعر الى 200$ دولار





    kalifa غير متواجد حالياً

  9. #9
    عضو نشيط
    تاريخ التسجيل
    Feb 2003
    المشاركات
    47


    hi every body

    sorry for my english but my keyboard dosn't support arabic

    you want To prevent people HOTLINKING (linking to your images from other sites, so they

    show on their pages on their sites, without the viewer ever

    visiting your site, though you pay for the bandwidth)add this

    rule to any of your .htaccess files on your site. Remember:

    placed in the root they guard the whole site.

    The http://www.yoursite.com/, tells the server which site the

    rewrite is for. The *somesite.com, tells the script to allow hot-linking from anywhere on that site, add a line for each site

    allowed to hotlink (change somesite.com/ to yoursite.com, if

    no hotlinking from other sites is allowed). You can choose

    whether to place this 'anti-hotlink' rule in your members aria to

    protect only there, or in your root to protect

    your whole site. If it's in your root, nobody can hotlink - no

    topsites, nothing, to anywhere on your site, accept the site/s

    positioned at '*somesite.com!)
    كود:
    RewriteEngine On 
    RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*somesite.com/ [NC] 
    RewriteRule /* http://www.yoursite.com [L,R]
    You may want to protect mpegs, too: in that case, use this one:

    Use this one to prevent the hot-linking of your pics, and movies (but read further here)
    كود:
    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} !^$ 
    RewriteCond %{HTTP_REFERER} !^http://www.yourdomain.com [NC] 
    RewriteCond %{HTTP_REFERER} !^http://yourdomain.com [NC] 
    RewriteRule .*\.(gif|GIF|jpg|JPG|mpg|MPG|Mpeg|mpeg|MPEG|rm|RM)$ http://www.yourdomain.com [R,L]
    Or this one
    كود:
    RewriteEngine on 
    RewriteCond %{HTTP_REFERER} !^http://w*\.*yourdomain.com 
    RewriteCond %{HTTP_REFERER} !^http://w*\.*yourIPaddress 
    RewriteRule .*[Jj][Pp][Gg]$|.*[Gg][Ii][Ff]$ http://www.yourbannerpage.com [R,L]
    Test it by linking direct to the pics and movies from an other site and also cut then paste the direct link.

    THE PROBLEM WITH MOVIE & FLASH FILES :

    There seems to be problem protecting movie images and particularly .swf (flash).

    Some webmasters say they have to embed their mpegs and flash files and not use the
    <img scr> tag.

    It is said that there is not yet a perfect solution to this, but

    the problems are caused because movie players use java and

    do not send headers and so the server does not track them.

    But, as a solution, most of the time the following will help:

    Add this rule to your .htaccess file in your movie directory:
    كود:
    RewriteEngine on 
    RewriteOptions inherit 
    RewriteCond %{HTTP_REFERER} !^http://([a-z0-9-]+\.)*yourdomain.com/ [NC] 
    RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) 
    RewriteRule /*$ http://www.yourdomain.com/ [L,R]
    Or add this one
    كود:
    RewriteEngine on 
    RewriteOptions inherit 
    RewriteCond %{HTTP_REFERER} !^http://yourIPaddress/.*$ [NC] 
    RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC] 
    RewriteCond %{HTTP_COOKIE} !(^|(.+;)*)id=valid(;.*|$) 
    RewriteRule /*$ http://www.yoursite.com [L,R]
    this is the best way to do what you want





    __________________
    System Programming + Unix

    Comparative Programming Languages

    Database Design , Computer Architecture

    Program Design & Development


    MR.CGI غير متواجد حالياً

  10. #10

    اشكرك اخوي MR.CGI



    ولكن جربت كل هذى الطريق ولا نفعت معاي




    نرفع السعر الى 300$ اللى يجيب لي الحل النهائي والمظمون 10000%

    www.kw10.net/tl.htm


    تحياتي لكم





    kalifa غير متواجد حالياً

  11. #11
    عضو نشيط
    تاريخ التسجيل
    Feb 2003
    المشاركات
    47


    ولكن جربت كل هذى الطريق ولا نفعت معاي


    i used it and it's verygood

    ok you want another way

    The most common way to prevent others from hotlinking your content is Apache's mod_rewrite. While this a solution that free available to use, there are a couple drawbacks. One being, that Apache has to be configured to use mod_rewrite (--enable-rewrite). Another one being, that for a lot of people writing regular expressions is not the most easiest thing to do.


    http://httpd.apache.org/docs/mod/mod_rewrite.html

    I wrote a little script which is used throughout my site:
    كود PHP:
    <img src="/display.php?id=34" border="0"
    With an ever changing ID of course. That's the part referencing my images in the database.

    The following is the code from the script which I use to retrieve the image from the database:
    كود PHP:
    <?
    $connection
    =@mysql_connect(...);
    @
    mysql_select_db(...);
    $query="SELECT mime, file FROM images WHERE id=".$_GET["id"];
    $rawdb=@mysql_query ($query,$connection);
    if(
    $rawdb AND @mysql_num_rows($rawdb)>0){
      
    $array=@ mysql_fetch_array($result);
      if (!empty(
    $array["fileContents"])){
        
    // Output the MIME header
        
    header("Content-Type: ".$array["mime"]}");
        // Output the image
        echo 
    $array["file"];
      }else{
        // something else...
      }
      @mysql_free_result(
    $rawdb);
    }else{
      // something else...
    }
    @mysql_close(
    $connection);
    ?>
    Since I already have a session for each user that comes to my website, I just added the following:
    كود PHP:
    <img src="/display.php?id=34&sid=3839839039039393829" border="0"
    And implement a small session checkup in the script itself:
    كود PHP:
    <?
    session_start
    ();
    if(
    $_SESSION["is_known"]){
      
    // do database calls
    }else{
      
    header("Location:[url]http://mydomain.com/dontstealmyimages.html[/url]");
    }
    ?>
    The main advantage to my method is, that the session is entirely server side. A user can not rid himself off it, or fake information. Since I have a timeout and save all the necessary info (IP!) to validate against, it looks pretty perfect to me and fit my needs.

    Hope that helps!





    __________________
    System Programming + Unix

    Comparative Programming Languages

    Database Design , Computer Architecture

    Program Design & Development


    MR.CGI غير متواجد حالياً





ضوابط المشاركة

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

أضف موقعك هنا| اخبار السيارات | حراج | شقق للايجار في الكويت | بيوت للبيع في الكويت | دليل الكويت العقاري | مقروء | شركة كشف تسربات المياه | شركة عزل اسطح بالرياض | عزل فوم بالرياض| عزل اسطح بالرياض | كشف تسربات المياة بالرياض | شركة عزل اسطح بالرياض