Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default How can i change source code for images to support ssl security?

    Hi i recently was hacked and decided to protect my website with ssl security, the security works on all pages with the https in the url, but i think i have an issue with the images as the pages display with mixed content, i don't know how to change the path of the images to https i would be grateful if somebody could help me. Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,917
    Plugin Contributions
    3

    Default Re: How to i change source code for images to support ssl security

    SSL will not protect you against hacks. It is simply a mechanism to convey data over the internet in an encrypted form.

    If you put in a ABSOLUTE url (http://www.mysite.com/images/img.jpg) then this will show up as a non-secure element.

    INTERNAL image references should all be RELATIVE PATH urls.

    Where exactly are you using absolute url's to images?

    If you are forcing SSL through the entire site (by stating this in the configure.php files) revert to standard behaviour.

    As I said, SSL will have no effect on hacker attempts.
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

  3. #3
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    62
    Plugin Contributions
    0

    Default Re: How to i change source code for images to support ssl security

    Hi thanks for that, my hosting company advised me to use ssl, my images are all in the zencart images folder but i keep getting the error unsecure because of mixed content, i thought it must be the image paths causing it, if you would like to see what i mean it is at http://www.rockbackingtracks.co.uk would be grateful for some help. Thanks

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    18,053
    Plugin Contributions
    1

    Default Re: How to i change source code for images to support ssl security

    As schoolboy said, the easiest way to fix this is to not secure your entire site. Having the whole site under SSL has no effect on hacking.

    http://tutorials.zen-cart.com/index.php?article=14

    It's your Google ads that are causing the problem, BTW. I don't know if making the link to them https will help or not.

  5. #5
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,917
    Plugin Contributions
    3

    Default Re: How to i change source code for images to support ssl security

    Just an aside...

    Do you intend selling stuff on your site?

    Practically every link direct people AWAY from it.

    Personally I don't see the logic in working so hard to get people to your front door, only to stand there and say (in effect) "Please don't come in... rather go to all these competitors who have much better products and offer much more exciting stuff!"

    To me, this makes no sense whatsoever...
    Did my post help you fix something? You can show your gratitude by buying the the dev team coffee.

 

 

Similar Threads

  1. Where is my source code?
    By Ambitions in forum General Questions
    Replies: 1
    Last Post: 12 Jun 2010, 02:51 PM
  2. source code PHP missing
    By Carla in forum General Questions
    Replies: 2
    Last Post: 5 Jan 2009, 05:09 AM
  3. Code Source Index!!!
    By Xylene2301 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 6 Feb 2007, 01:41 AM

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
  •