Not signed in (Sign In)

Categories

Vanilla 1.1.8 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  
    I host the vast majority of my MP3s on my own website and I keep on finding these MP3 websites/search engines (www.mp3s.nadruhou.net/, www.seekasong.com/, www.mp3fusion.net, etc.) that add links to my MP3s to their database.  Is there any way to keep these websites from constantly linking to my MP3s and therefore eating up my bandwidth?
  2.  
    htaccess- search for it in these forums
    • CommentAuthorryna
    • CommentTimeDec 10th 2006 edited
     
    if you know how to edit your htaccess file, add these lines


    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^.*seekasong\.com.*$  [OR]
    RewriteCond %{HTTP_REFERER} ^.*mp3fusion\.net.*$ [OR]
    RewriteCont %{HTTP_REFERER} ^.*mp3s\.nadruhou\.net.*$ [NC]
    RewriteRule \.*$ http://www.goatse.cx/ [R,L]


    Replace goatse.cx with wherever you'd like them redirected.  You can add more of these lines:

    RewriteCond %{HTTP_REFERER} ^.*mp3fusion\.net.*$ [OR]

    but make sure you always have a \ in front of the .'s in the URL.   The beginning .* and ending .* are merely part of the regular expression, so a referrer that matches whatever URL you specify in any spot will be redirected.
    •  
      CommentAuthorpaul tao hsb
    • CommentTimeDec 10th 2006 edited
     
    Hahaha goatse.


    To be honest, I have no idea how to do htaccess files.  I tried doing one a year or so ago so that my "Page Not Found" page would be something different than the normal default page, but I ended up just messing everything up somehow and I couldn't get to my website, so I just got rid of the htaccess and haven't touched anything remotely htaccess since then.  Can anyone give me a quick how-to on how to set up a htaccess? 
    • CommentAuthorryna
    • CommentTimeDec 10th 2006
     
    create a file called ".htaccess" in the root of your domain's public files

    you can override this default .htaccess in subdirectories by creating an .htaccess file in each subdirectory.
    •  
      CommentAuthorpaul tao hsb
    • CommentTimeDec 10th 2006 edited
     
    I just tried created a file called .htaccess, put in that code above that you said to put in there, uploaded it to my site and when I went to my website, it said...

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, and inform them of the time the error occurred and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.


     

  3.  
    rewrite might not work on all servers.. you might have to find some sort of deny
    • CommentAuthorryna
    • CommentTimeDec 10th 2006
     
    try putting that code inside this:

    <IfModule mod_rewrite.c>

    </IfModule>

    if your host doesn't support mod rewrite, it won't work
  4.  
    try:

    RewriteEngine On
    RewriteCond %{HTTP_REFERER} (seekasong\.com) [NC,OR]
    RewriteCond %{HTTP_REFERER} (mp3fusion\.net) [NC,OR]
    RewriteCont %{HTTP_REFERER} (mp3s\.nadruhou\.net) [NC]
    RewriteRule .* http://www.goatse.cx/ [R,L]
    • CommentAuthorryna
    • CommentTimeDec 10th 2006
     
    mine should be correct... you want to redirect when it's coming from *any* page on the site, not just the root, right?
  5.  
    Nope.  Damn.  I guess I'll contact my host and see if I can do rewrite.
  6.  
    Hmm I just looked at my host's FAQ and they should theoretically be able to do rewrites... after all, they have a section called "How do I use mod_rewrite?" and then they have a few details on how to do that mod rewrite thing like you guys are talking about.  It still doesn't help though, because I did what you guys said and what the FAQ said and it's the same results.
  7.  
    Who is your host?

    The samples above look pretty good.
  8.  
    globat.  i've been told that globat is the worst host ever, but my package or whatever doesn't run out until april so i guess i'm stuck until then...
    • CommentAuthortuwa
    • CommentTimeDec 10th 2006
     
    Speaking of, does dot-mac allow .htaccess?  I tried one, got no results, and then wrote them asking about it and they didn't respond.  dorks.
  9.  
    Ok a friend of mine gave me this code:

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://(www\.)?hatesomethingbeautiful.com.com(/)?.*$ [NC]
    RewriteRule .*\.(mp3|mp?g|m4a|ogg)$ [F,NC]


    And for some reason, that htaccess will work with my website, but when I try using the ones you guys gave me earlier, it gives me Internal Server Error.  Any clue why?  I mean, the code my friend gave me works for now, but that means other blogs linking to my MP3s get screwed too, and I only wanted to screw over the stupid search engines.
  10.  

    Question for all the experts.  Here's my htaccess file:

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_REFERER} ^.*seekasong\.com.*$  [OR]
    RewriteCond %{HTTP_REFERER} ^.*neopets\.com.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*quartertothree\.com.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*mp3-center\.org.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*seekasong\.com.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*sonicx\.com.*$ [OR]
    RewriteCond %{HTTP_REFERER} ^.*mp3fusion\.net.*$ [NC]
    RewriteRule \.*$ http://www.irockcleveland.com/index.html$1 [R,L]

    This works as I would expect when you left click on a hotlinked mp3 from mp3fusion.net -- it opens to a stub web page.  However, right-click save as still works.  Is there something I'm missing?

    •  
      CommentAuthormuruch
    • CommentTimeOct 19th 2007
     
    I just noticed that SonicX has been hotlinking to mp3s on my server. I contacted them asking for them to stop, but so far haven't received a reply. Being a legal music blog, all my mp3s are posted with permission and certain conditions (time limit, only posted to my blog, etc.). So not only are SonicX stealing bandwidth, they are violating the terms of my agreements with the artists. This is both annoying and odd, because my rss feed doesn't include mp3 links and many of my reviews don't even have mp3s in them. So I assume there's someone working for the site who reads my blog (obviously ignoring the disclaimer) to get the links.
    •  
      CommentAuthormuruch
    • CommentTimeOct 19th 2007
     
    Strike that. I just received a very nice reply from someone at SonicX saying they would remove all of the links to my server. So if you don't want them hotlinking, just contact them at the email address listed on their site.