Bandwidth thieft / Grabber scripts prevention methods?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Bandwidth thieft / Grabber scripts prevention methods?

    Seeming grabber scripts are becoming more and more alive on here i was wondering what your best methods of protection are?

    maybe:
    PHP Code:
    if(substr_count($_SERVER['HTTP_USER_AGENT'],"php")>0){
    header("Location: http://getlost.con");
        exit;

    or maybe using a logged in script with headers to hide file locations such as:
    PHP Code:
    header("Pragma: public");
    header("Expires: 0");
    header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header("Cache-Control: public");
    header("Content-Description: File Transfer");
    header("Content-Type: $type");
    header("Content-Disposition: attachment; filename=\"$name\"");
    header("Content-Transfer-Encoding: binary");
    header("Content-Length: " $size); 
    You could use .htaccess to prevent images being stolen such as:
    PHP Code:
    RewriteEngine On
    RewriteCond 
    %{HTTP_REFERER} !^http://(.+\.)?mysite\.com/ [NC]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ http://mysite.com/hotlink.png [L] 
    But For Many Mobile Phones They Do Not Support Referer so you need to add a blank No Condition also


    any better ideas?

    #2
    Use anti hotlink in download...

    check if isdomain isnowdomain

    i liked this look of this script and mite share it

    I will share mine soon
    Attached Files
    Visit: Chat4u.mobi - The New Lay Of being a site of your dreams!
    Visit: WapMasterz Coming Back Soon!
    _______
    SCRIPTS FOR SALE BY SUBZERO
    Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders.
    FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others...
    _______
    Info & Tips
    php.net
    w3schools.com

    Comment


      #3
      i use something simular that iv coded myself but you have to login to be able to access the download page rather than rely on HTTP_REFERER as a lot of mobiles dont support it.
      So you have to also have a blank domain = "" for referer also which can also cause problems

      iv also had a lot of problems with some Nokia n-series phones not being able to download files when using header("Content-Disposition: attachment; filename=\"$name\"");
      Last edited by something else; 14.08.10, 21:12.

      Comment


        #4
        :D

        I've got a cool IDEA, :D

        if the site owners makes dynamic css files, None of replacement techniques will work properly :P

        No preg_match, No str_replace :P

        Just basic demo
        Code:
        <div class="foo">some content</div>
        when page is refreshed
        Code:
        <div class="bar">some content</div>
        I need some facebook likes, can you please help me
        http://facebook.com/softwarefreakin
        I noticed social media is really powerful
        Well DONE is better than well SAID

        Comment


          #5
          Originally posted by softwarefreak View Post
          I've got a cool IDEA, :D

          if the site owners makes dynamic css files, None of replacement techniques will work properly :P

          No preg_match, No str_replace :P

          Just basic demo
          Code:
          <div class="foo">some content</div>
          when page is refreshed
          Code:
          <div class="bar">some content</div>
          if you use preg_replace can be avoided :-?

          PHP Code:
          <?php
          $div 
          preg_replace('|<div class="(.*?)">|is' ,'your div' ,$div);
          ?>

          Comment


            #6
            :D dat was just a basic example, It's not dat easy to grab a page perfectly where the css classes/ids are dynamic :D
            I need some facebook likes, can you please help me
            http://facebook.com/softwarefreakin
            I noticed social media is really powerful
            Well DONE is better than well SAID

            Comment


              #7
              Originally posted by softwarefreak View Post
              :D dat was just a basic example, It's not dat easy to grab a page perfectly where the css classes/ids are dynamic :D
              you're right :D

              Comment

              Working...
              X