Results 1 to 4 of 4
  1. #1

    External Images through SSL

    For the site I'm working on I need to put at the footer an image that ranks the current site. This image is not on the server, and it changes dynamicaly at random times (external call to the image). I need to get it working on my SSL pages, but I don't want the browser to ask the user if they "Want to Display InSecure items?". Anyone know a way around this (I need to keep the external link if possible cause it randomly changes).

  2. #2
    Join Date
    Aug 2002
    To keep it secure you will need to call a secure page. The external link should also have an SSL cert.
    Jamie High Velocity Hosting Services - Since 1999
    Hsphere Linux & Windows Hosting ~ Automated Reseller Plans ~ EasyApp Collection

  3. #3
    Join Date
    Apr 2003
    Sunny UK
    I had this problem a little while ago and managed to get around it by writing a Perl script which ran on my SSL pages but pulled the image remotely.

    I used the Image::Grab module to do this (it requires a couple of other modules to work - details are on the pod page).

    The code for the script is a basic as it gets:
    use Image::Grab;
    $pic = new Image::Grab;
    $image = "http://url.of.insecure/image.gif";
    #Grab image
    #Print image
    print "Content-type: image/gif\n\n";
    print $pic->image;
    Then just make the script accessible via your https and call it as the image link, e.g.

    <img src="https://www.your-secure-site/image.cgi">
    and Bob's your uncle. As far as the browser is concerned the image will be secure and you won't get any warning messages.

    I'm not quite as versed in PHP but I would have thought it was possible to do something along the same lines if that's more your thing.

  4. #4
    Join Date
    Jul 2003
    You can just use apache's mod_rewrite. Throw this into a .htaccess.

    RewriteEngine on
    RewriteRule ^filename\.jpg$ [P]

Posting Permissions

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