Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 8 of 8

This is a discussion on Images not showing after setting up Hotlink Protection in the Website Management forum
Hey guys, I'm having trouble regarding my website. After setting up hotlink protection I noticed that all of my images are not showing up. Here ...

  1. #1
    JPC Member
    Join Date
    Oct 2011
    Posts
    2

    Images not showing after setting up Hotlink Protection

    Hey guys, I'm having trouble regarding my website.


    After setting up hotlink protection I noticed that all of my images are not showing up.

    Here you can visit my website here.

    Anyone knows how to fix this?

  2. #2
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by kotaro535 View Post
    Hey guys, I'm having trouble regarding my website.


    After setting up hotlink protection I noticed that all of my images are not showing up.

    Here you can visit my website here.

    Anyone knows how to fix this?
    Well...

    I don't mean to be a wiseguy - really - but, you didn't furnish much info.

    On face value, if enabling hotlink protection is causing problems, disabling hotlink protection should fix the problems, no?

    If you can be more specific, such as: what you're trying to accomplish, how you setup your hotlink protection, what the undesired effect has been, et cetera, maybe someone can walk you through it...

    Interesting server stats, you got there, BTW!
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

  3. #3
    JPC Member
    Join Date
    Oct 2011
    Posts
    2
    Uh. Thanks btw.

    I have solved the problem now.

    I just deleted .htaccess and everything went back to normal

  4. #4
    JPC Dream Team JPC-Sabrina's Avatar
    Join Date
    Aug 2011
    Posts
    346
    Simple solutions are sometimes the best place to start. It is good to hear that your issue is resolved. Vin DSL thanks for pointing out that when users post to forums with issues it is helpful to provide as much information as possible. That way it is easier to pinpoint and trouble shoot the problem more quickly.
    JPC-Sabrina / Public Relations
    sabrina@jaguarpc.com

    Sabrina/ Public Relations
    (email)

    Need a Manager?
    (pm) | (email) David, Customer Service Manager
    (pm) | (email) Masood, Chief Technical Officer
    (pm) | (email) Les, Chief Operations Officer

  5. #5
    Voluntarily Retired gohighvoltage's Avatar
    Join Date
    Jan 2011
    Posts
    641
    kotaro535.

    HotLink protection can be tricky. You say that you deleted the htaccess file. Are you sure that it was not needed for your website/forum? Typically htaccess houses some pretty important stuff, such as rewrites, etc.

    Do you have a dedicated directory for images?

    I see all your images are located in:
    Index of /temp_files/images

    The first thing you need to do is create an htaccess file in your images directory. Inside the htaccess file you need to have:

    Options -Indexes

    What this does is prevent people from seeing all your images in the directory. This is important.

    Then in your same image directory, you need to create a robots.txt file and have in it:

    User-agent: *
    Disallow: /

    this keeps the "HONEST" web crawlers from indexing your images.


    As far as the actual hotlink protection, this can be done, but like VIN DSL said, we would need more information, and it can be tricky.

    Hotlinking protection works fine, where most people have trouble is if they use sub-domains, or other forwarded domains.

    Let me know, I would be glad to help ya.

  6. #6
    Nearly 100% Pure Carbon thecoalman's Avatar
    Join Date
    Nov 2007
    Location
    Northeast Pennsylvania
    Posts
    529
    Quote Originally Posted by gohighvoltage View Post

    Then in your same image directory, you need to create a robots.txt file and have in it:

    User-agent: *
    Disallow: /
    That won't prevent a bot from crawling that directory. robots.txt has to be in the top level directory for your domain (example.com/robots.txt), in robots.txt you would specify what directories you don't want crawled.

    Code:
    User-agent: * 
    Disallow: /somedirectory/
    Disallow: /anotherdir/
    There is a lot more options than that like wildcards, different rules for different user agents etc.

    On a final note using this:

    Code:
    User-agent: * 
    Disallow: /
    Will tell all bots not to index anything at all on your site.
    Last edited by thecoalman; 11-01-2011 at 01:56 AM.

  7. #7
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,312
    Excellent post thecoalman. It's always wonderful to see such helpful posts from smart detail oriented people like you.
    Good luck

  8. #8
    Voluntarily Retired gohighvoltage's Avatar
    Join Date
    Jan 2011
    Posts
    641
    Quote Originally Posted by thecoalman View Post
    That won't prevent a bot from crawling that directory. robots.txt has to be in the top level directory for your domain (example.com/robots.txt), in robots.txt you would specify what directories you don't want crawled.

    Code:
    User-agent: * 
    Disallow: /somedirectory/
    Disallow: /anotherdir/
    There is a lot more options than that like wildcards, different rules for different user agents etc.

    On a final note using this:

    Code:
    User-agent: * 
    Disallow: /
    Will tell all bots not to index anything at all on your site.

    Great Followup thecoalman. You are correct, I should of noted it should be in the main directory. Thanks for correcting that.


    So in your main directory, you want to create a robots.txt
    and have in it:

    User-agent: *
    Disallow: /temp_files/images/

Bookmarks

Posting Permissions

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