Page 1 of 2 12 LastLast
Results 1 to 15 of 16

Thread: stop hotlinking ? .htaccess?

  1. #1
    miamiglen
    Guest

    stop hotlinking ? .htaccess?

    Hi Everyone, I got hotlinked by topfong, and I'm not too great at this stuff, but I thought I'd better try to use .htaccess. I created a text file .htaccess and generated a code using BoyAlleys Stop Hotlinking tool, copied, pasted, uploaded to my images folder, and ended up with no images on my site (just red x's). I deleted the .htaccess and everything came back. I'd like to use .htaccess, but I must be doing something wrong. Any ideas? Thanks, Glen


  2. #2
    JustMe
    Guest
    Greetings:

    Mind providing the URL you're working with? I'd be happy to help you troubleshoot.


  3. #3
    miamiglen
    Guest
    Hi BA/ just Me
    It's just my own site
    http;//www.glenmitchell.com
    Thx, Glen


  4. #4
    miamiglen
    Guest


  5. #5
    JustMe
    Guest
    Greetings:

    Ah, you're using javascript mouseover events and the like. The generic htaccess file that our tool spits out might not be liking that. Try the following instead:

    PHP Code:

    RewriteEngine on
    RewriteCond 
    %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://glenmitchell.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://glenmitchell.com$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.glenmitchell.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.glenmitchell.com$ [NC]
    RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC
    Make sure that the one NC isn't on a new line. The board's causing a break that shouldn't be there.

    (Lee: You REALLY need to upgrade to the new version of Vbulletin.)


  6. #6
    miamiglen
    Guest
    Hmm, The images without swap image behaviors didn't X out, but the ones that do, turned into red Xs.
    :nowords:


  7. #7
    JustMe
    Guest
    Greetings:

    I'm looking at your site right now, and everything is red X's. The htaccess file I gave you above wouldn't be causing that.

    Are you sure you don't have an htaccess file in the root directory that your images directory is sitting in that may be over riding it?

    If you have AIM or ICQ and want to hit me up I'd be glad to help you through the problem:

    AIM: TheBoyAlley
    ICQ: 325-467-462


  8. #8
    miamiglen
    Guest

    Thx BoyAlley/ Just Me

    Hi BoyAlley/ Just Me, Nope, I couldn't find anything else. I deleted the .htaccess for now and the images came right back. I guess I'll just go without .htaccess till I get it figured out, and cross my fingers that topfong leaves me alone. I don't have an AIM or ICQ, but in any case, thanks for attempting to help me. At least I understand .htaccess a bit better now. :angel: Thanks Again, Glen


  9. #9
    Moderator Bec's Avatar
    Join Date
    Nov 2003
    Location
    Ohio
    Posts
    8,419
    1. hotlinking bandwidth ...$$$$ down drain monthly
    2. ICQ Account ... FREE
    3. Webmaster Assist ... PRICELESS!

    If one site is burning up your bandwidth by hotlinking, rest assured there will more to follow ... ICQ is free ... and I'd say the bulk of the adult industry webmasters use it to network with, well worth downloading and setting up a way for guys like JustMe to contact you and help you out.... that kind of help around these parts is priceless.


  10. #10
    miamiglen
    Guest

    ICQ

    Thanks Bec, I haven't used it before, but I have an ICQ# now, and put it in my profile. Thanks again for the advice, Glen


  11. #11
    Moderator Bec's Avatar
    Join Date
    Nov 2003
    Location
    Ohio
    Posts
    8,419
    After you figure out how to approve folks a couple times, you'll be just fine! Glad you decided to install it! Here's hoping JustMe can get your problem resolved.


  12. #12
    JustMe
    Guest
    Greetings:

    Hey Glen. Glad to see you're getting onboard with ICQ. I think you'll find it's used by many in this industry. And, the new ICQ Version 5 is just too sexy for words. I've added you to my list, so feel free to contact me when you get online.

    HOWEVER, I was thinking about your problem when I was out on my porch having a glass of Iced Tea:

    Options +FollowSymlinks

    Add that to the very top of the config I gave you above, and put it in an .htaccess file. It could be that SymLinks aren't turned on globally for your apache install, which would probably cause the exact problem you mentioned.

    If not, like I said, feel free to hit me up.


  13. #13
    virgin by request ;) Chilihost's Avatar
    Join Date
    Oct 2003
    Posts
    4,496
    are you all set with this yet? you really should contact your webhost about this, servers are setup differently - depending on your server's httpd configuation, you may have to add in extra lines or it may not even be possible to use .htaccess files!!!

    Your webhost should be helping you with this as they know their servers and should know how to implement htaccess files.

    If you cannot get in touch with them and still need help, you can get me on icq 118860760 and I can try to assist however I can.

    cheers,
    Luke


  14. #14
    miamiglen
    Guest
    Hi all, Thanks for all the advice. Just Me, I tried to add the code Options +FollowSymlinks and a few different things were red Xs.
    I thought I'd try uploading to my root folder instead of my images folder and then got a 500 internal system error. Luke, I'll try my webhost, earthlink, to see what they advice they might have, if anything. I'm working all day tomorrow, so I'll have to wait till tuesday to tackle it again. Bec, At least I have ICQ now. Thanks again all, Glen :baby:
    http://www.glenmitchell.com


  15. #15
    JustMe
    Guest
    Greetings:

    Ok, if it's generating a 500 Internal Server Error then there are DEFINATELY configuration issues in your apache httpd.conf, which you probably don't have control over.

    I'd suspect there's a no allow overrides statement in there somewhere preventing the htaccess files that I showed you from working.

    Definately have your hosting provider check that out for you, and report back.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •