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

This is a discussion on Allow remote linking from a single location in the Shared & Semi-Dedicated forum
Hey all, this one has me stumped. I am having a tough time controling the remote linking of images. I know I can turn off ...

  1. #1
    say what?
    Join Date
    Aug 2001
    Posts
    77

    Allow remote linking from a single location

    Hey all, this one has me stumped. I am having a tough time controling the remote linking of images.

    I know I can turn off the remote linking in general, but I don't want to do that. I am hosting some images that need the remote link.

    Is there a way that I can turn it off, but with exceptions from certain domains and sub domains?

  2. #2
    JPC Addict
    Join Date
    May 2003
    Location
    Canada
    Posts
    141
    Using htaccess and mod-rewrite should do the trick. I havent really worked with this myself but Ive got a couple of links bookmarked that might help you out.

    http://www.javascriptkit.com/howto/htaccess10.shtml
    http://faq.solutionscripts.com/misc/hot_linking.html
    Memento Mori

  3. #3
    say what?
    Join Date
    Aug 2001
    Posts
    77
    OKay...I knew I could totally block the linking and that I could put up a single image to replace whatever image they originally wanted.

    But...if I wanted to allow the images to be viewed on *certain* specific domains, can I simply add a line to this?

    RewriteEngine on
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} !^http://your_domain.com/.*$ [NC]
    RewriteCond %{HTTP_REFERER} !^http://www.your_domain.com/.*$ [NC]
    RewriteRule .*\.(gif|GIF|jpg|JPG)$ - [F]
    such as

    RewriteCond %{HTTP_REFERER} !^http:/allowed_domain.com/.*$ [NC]


    Would that work?

  4. #4
    say what?
    Join Date
    Aug 2001
    Posts
    77
    ....of course....

    I could have just looked in CPanel...where it allows you to simply add allowed domains.

    I'm feeling really intelligent now...





    Please excuse my momentary dumbness...

  5. #5
    JPC Addict
    Join Date
    May 2003
    Location
    Canada
    Posts
    141
    That sounds like an easier solution. Glad you got it working.
    Memento Mori

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
  •