Need .HTACCESS ... HLP!

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • qxm
    Confirmed User
    • Jul 2006
    • 5970

    #1

    Need .HTACCESS ... HLP!

    Hi guys! I checked my bw stats and it seems that some russian scumbag site is hotlinkng the shit out of one of my sites.......(~10gb/day).... since I have a dedicated box and good bw package I am not too worried about it .... but I don't want these sons of bitches getting used to it so .... do you guys have an htaccess file which will help me block access from one site in particular? ... if you have a geo-ip .htaccess blocker that will do too!

    Thanks 4 ur help guys

    ICQ: 266990876
  • Iron Fist
    Too lazy to set a custom title
    • Dec 2006
    • 23400

    #2
    If you know the referring links you can block those using this:

    Code:
    RewriteEngine on
    Options +FollowSymlinks
    RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC,OR]
    RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]
    RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
    Just add lines as necessary....
    i like waffles

    Comment

    • yahoo-xxx-girls.com
      Confirmed User
      • Jul 2006
      • 3143

      #3
      Also you need to check your server plug ins to make sure your server has the required php settings... and you need to check your file regarding permissions...
      sig too big

      Comment

      • qxm
        Confirmed User
        • Jul 2006
        • 5970

        #4
        Originally posted by sharphead
        If you know the referring links you can block those using this:

        Code:
        RewriteEngine on
        Options +FollowSymlinks
        RewriteCond %{HTTP_REFERER} ^http://(.+\.)?myspace\.com/ [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://(.+\.)?blogspot\.com/ [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC,OR]
        RewriteCond %{HTTP_REFERER} ^http://(.+\.)?livejournal\.com/ [NC]
        RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
        Just add lines as necessary....
        awesome m8! ... thats exactly whut I needed

        ICQ: 266990876

        Comment

        • V_RocKs
          Damn Right I Kiss Ass!
          • Nov 2003
          • 32449

          #5
          Required PHP settings and file permissions?

          Ohhh OK.....

          Comment

          • qxm
            Confirmed User
            • Jul 2006
            • 5970

            #6
            mmm.. it seems that there is some sort of syntax error with my .htaacess file cause the logs indicate those russian sites are still able to hotlink my content.........

            This is whut I have:

            Code:
            php_flag safe_mode off
            php_flag log_errors on
            php_flag register_globals on
            
            RewriteEngine on
            Options +FollowSymlinks
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?redlips\.ru/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?spermik\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?ananasik\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?arbuzik\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?buterbrod\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?kokosik\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?eroman\.ru/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sexpix\.ru/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?morkovka\.net/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?smoder\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?ruclub\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sex4free\.co.il/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?almazik\.com/ [NC,OR]
            RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC]
            RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
            My logs also show this other site>>> http://www.elreyanovip.com/popit.php but there is nothing on that domain... could they be using that domain as a proxy to redirect the hotlinks?


            Any ideas?????

            ICQ: 266990876

            Comment

            • 2012
              So Fucking What
              • Jul 2006
              • 17189

              #7
              Originally posted by qxm
              mmm.. it seems that there is some sort of syntax error with my .htaacess file cause the logs indicate those russian sites are still able to hotlink my content.........

              This is whut I have:

              Code:
              php_flag safe_mode off
              php_flag log_errors on
              php_flag register_globals on
              
              RewriteEngine on
              Options +FollowSymlinks
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?redlips\.ru/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?spermik\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?ananasik\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?arbuzik\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?buterbrod\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?kokosik\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?eroman\.ru/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sexpix\.ru/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?morkovka\.net/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?smoder\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?ruclub\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?sex4free\.co.il/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?almazik\.com/ [NC,OR]
              RewriteCond %{HTTP_REFERER} ^http://(.+\.)?fusker\.lv/ [NC]
              RewriteRule .*\.(jpe?g|gif|bmp|png)$ - [F]
              My logs also show this other site>>> http://www.elreyanovip.com/popit.php but there is nothing on that domain... could they be using that domain as a proxy to redirect the hotlinks?


              Any ideas?????
              this is all based on the hope they send you HTTP_REFERER <--- this
              best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

              Comment

              • qxm
                Confirmed User
                • Jul 2006
                • 5970

                #8
                Originally posted by fartfly
                this is all based on the hope they send you HTTP_REFERER <--- this
                mmm... ok .. so how would I modify this stuff? .... should I erase the %{HTTP_REFERER} part leavin it looking like this?:

                RewriteCond ^http://(.+\.)?redlips\.ru/ [NC,OR]

                ICQ: 266990876

                Comment

                • 2012
                  So Fucking What
                  • Jul 2006
                  • 17189

                  #9
                  do you have icq or something ? I've been trying the same thing with .htaccess ... but its really pointless , there are alot of other methods
                  Last edited by 2012; 07-07-2008, 02:20 AM.
                  best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

                  Comment

                  • qxm
                    Confirmed User
                    • Jul 2006
                    • 5970

                    #10
                    YEAP.... let add u... it seems that the more sites I add to that .htaccess thingy the more russian sites I see on my stats wtf!....

                    ICQ: 266990876

                    Comment

                    Working...