Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
IMG Cacher - SSL Keeper - Mixed Content Block Solution Details »
IMG Cacher - SSL Keeper - Mixed Content Block Solution
Mod Version: 2.2, by MegaManSec (Member) MegaManSec is offline
Developer Last Online: Dec 2016 I like it Show Printable Version Email this Page

vB Version: 4.1.x Rating: (9 votes - 5.00 average) Installs: 89
Released: 20 Sep 2012 Last Update: 30 Oct 2013 Downloads: 441
Not Supported Uses Plugins Template Edits Additional Files Re-usable Code Translations External Content  

Pretty much you use this when you want to keep the SSL certificete working on pages that people may use [IMG] tag's without https://.

When you use SSL on your forum, and somebody embeds an image from a non-ssl host, lots of browsers will give you a warning and say the website is unsafe ---this is a solution to that problem.

Specifically, Mozilla has a 'Mixed Content Blocker', which makes it so if you are on an https:// website, it won't load any content on the same domain, using http://.



NOTE: MAKE SURE THE .HTACCESS FILE IN cache-img/ IS WORKING!



Upload the files into your root directory, and that's it.

Then you need to create a plugin (admincp -> plugins & products -> add new plugin)
Hook location: bbcode_img_match
Title: SSL IMG Cacher
Execution order: 5
Plugin PHP Code:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Plugin is active: Yes


edit "[LINK_TO_YOUR_WEBSITE]" - Without http, example: www.dragonbyte-tech.com or www.internot.info etc. etc.

Then you are done.

It should be secure as the actual directory for the images is not available.(deny from all in htaccess)


I would also suggest adding this to robots.txt

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Also I suggest you add something like this to .htaccess:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

======
I only give support to people who have pressed 'installed' this.
======


Source&stuff can be found here: https://github.com/MegaManSec/IMG

For vB3.8 solution, go here: http://www.vbulletin.org/forum/showt...75#post2411575 (Thanks to Kh99)

Download Now

Only licensed members can download files, Click Here for more information.

Show Your Support

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Comments
  #2  
Old 23 Sep 2012, 07:44
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
When you use SSL on your forum, and somebody embeds an image from a non-ssl host, lots of browsers will give you a warning and say the website is unsafe(which is untrue) - this is a solution to that problem.
Thanks.
Is there a similar solution to loads adsense in SSL forum without any warning?
Reply With Quote
  #3  
Old 23 Sep 2012, 09:18
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Originally Posted by sivaganeshk View Post
Thanks.
Is there a similar solution to loads adsense in SSL forum without any warning?
I'll give you an example of how to do it.

This is mine:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit this part:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and make it https://
__________________
I do free vBulletin modification security checks. PM me.
http://services.internot.info/
Reply With Quote
  #4  
Old 23 Sep 2012, 09:36
DoDe's Avatar
DoDe DoDe is offline
 
Join Date: Feb 2007
Real name: Daniel
The embedded image appears in the cache_img directory but it doesn't appear in the posted thread. How to make it appear there?
Reply With Quote
  #5  
Old 23 Sep 2012, 09:41
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Originally Posted by DoDe View Post
The embedded image appears in the cache_img directory but it doesn't appear in the posted thread. How to make it appear there?

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

this part. if you've already done that and it doesn't work, PM me some credentials for me to login to your forum (and a link to the forum) and I'll have a look.
__________________
I do free vBulletin modification security checks. PM me.
http://services.internot.info/
Reply With Quote
  #6  
Old 23 Sep 2012, 09:44
sivaganeshk sivaganeshk is offline
 
Join Date: Oct 2010
Question

Originally Posted by loaep View Post
I'll give you an example of how to do it.

This is mine:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

edit this part:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

and make it https://
LoL. but editing the adsense code may lead to account ban. I searched about it few months ago..
Reply With Quote
  #7  
Old 23 Sep 2012, 09:47
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Originally Posted by sivaganeshk View Post
LoL. but editing the adsense code may lead to account ban. I searched about it few months ago..
replacing http with https will not cause a ban.
__________________
I do free vBulletin modification security checks. PM me.
http://services.internot.info/
Reply With Quote
  #8  
Old 23 Sep 2012, 10:14
MegaManSec MegaManSec is offline
 
Join Date: Aug 2011
Please re-download the modification. I forgot to update a part of the code for it to actually work.

Once you've re-downloaded it, it will work.
__________________
I do free vBulletin modification security checks. PM me.
http://services.internot.info/
Reply With Quote
  #9  
Old 23 Sep 2012, 10:20
DoDe's Avatar
DoDe DoDe is offline
 
Join Date: Feb 2007
Real name: Daniel
Ok, thanks!

Edited: It's working now,

thanks again !
Reply With Quote
  #10  
Old 02 Nov 2012, 02:33
Dorgham's Avatar
Dorgham Dorgham is offline
 
Join Date: May 2012
Great work
product has been added successfully
Thank you
__________________
AdSense revenue sharing 100% - [ Hanan ]
News, egypt : أخبار مصر - Photo, picture : صور
Reply With Quote
  #11  
Old 19 Jan 2013, 03:48
LifesGreatestGift's Avatar
LifesGreatestGift LifesGreatestGift is offline
 
Join Date: Jul 2009
This is AWESOME!
__________________
If I have helped you, the least you could do is click the button to show your appreciation.
TheSecond.org - Because it is our right!
Reply With Quote
  #12  
Old 19 Jan 2013, 05:00
hakkuo23 hakkuo23 is offline
 
Join Date: Dec 2010
Here is a version that just displays the image, and doesn't save it, to save server space


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Reply With Quote
  #13  
Old 22 Mar 2013, 16:08
Fluke667 Fluke667 is offline
 
Join Date: Feb 2007
works on vb3.8 too with this:

http://www.vbulletin.org/forum/showt...75#post2411575


THX to kh99
Reply With Quote
  #14  
Old 26 Mar 2013, 23:20
bibbaman bibbaman is offline
 
Join Date: Jan 2013
Hiya, I installed the MOD. It's not working for me at the moment, the images are not saving in the cache directory do I need to CHMOD the folders to anything different from 755?

Regards Steve
Reply With Quote
  #15  
Old 27 Mar 2013, 23:34
bibbaman bibbaman is offline
 
Join Date: Jan 2013
I made a silly error with the uploading the whole folder instead of the contents of the folder. Now working very well cheers.

Originally Posted by bibbaman View Post
Hiya, I installed the MOD. It's not working for me at the moment, the images are not saving in the cache directory do I need to CHMOD the folders to anything different from 755?

Regards Steve
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 15:44.

Layout Options | Width: Wide Color: