Zen Cart Logo
Forums / General Questions / How can i change source code for images to support ssl security?

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

Locked

Views: 1,351

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
25 Jun 2010, 9:18 AM
#1
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

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

25 Jun 2010, 11:53 AM
#2
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How can 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.

26 Jun 2010, 8:56 AM
#3
luvvvvvit avatar

luvvvvvit

New Zenner

Join Date:
Jul 2009
Location:
United Kingdom
Posts:
62
Plugin Contributions:
0

Re: How can 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 :wacko:

26 Jun 2010, 10:09 AM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: How can 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.

https://www.zen-cart.com/tutorials/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.

26 Jun 2010, 4:55 PM
#5
schoolboy avatar

schoolboy

Totally Zenned

Join Date:
Jun 2005
Location:
Cumbria, UK
Posts:
10,327
Plugin Contributions:
0

Re: How can 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...