The Arcive of vBulletin Modifications Site. |
|
IMG Cacher - SSL Keeper - Mixed Content Block Solution Details »»
|
|||||||||||||||||||||||||||||
|
IMG Cacher - SSL Keeper - Mixed Content Block Solution
Developer Last Online: Dec 2016
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: Code:
$link_parsed = parse_url($link);
if ($link_parsed['host'] != '[LINK_TO_YOUR_WEBSITE]')
{
$link = $this->registry->options['bburl'] . '/cache.php?img=' . urlencode($link);
$retval = ($fullsize ? '<div class="size_fullsize">' : '') . '<img src="' . $link . '" border="0" alt="" />' . ($fullsize ? '</div>' : '');
}
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 Code:
User-agent: * Disallow: /cache.php Code:
<FilesMatch "cache\.php$"> Header set Cache-Control "max-age=86400, public" </FilesMatch> 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: https://vborg.vbsupport.ru/showthrea...75#post2411575 (Thanks to Kh99) Download Now
Show Your Support
|
|||||||||||||||||||||||||||||
| 4 благодарности(ей) от: | ||
| Andreasmax, Duke49th, seb5594, VBFguy | ||
| Comments |
|
#2
|
|||
|
|||
|
Quote:
Is there a similar solution to loads adsense in SSL forum without any warning? |
|
#3
|
|||
|
|||
|
Quote:
This is mine: Code:
<script type="text/javascript"><!-- google_ad_client = "ca-pub-8761986403507850"; /* bugabuse */ google_ad_slot = "9327213821"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> Code:
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
|
#4
|
||||
|
||||
|
The embedded image appears in the cache_img directory but it doesn't appear in the posted thread. How to make it appear there?
|
|
#5
|
|||
|
|||
|
Quote:
Code:
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: |
|
#6
|
|||
|
|||
|
Quote:
|
|
#7
|
|||
|
|||
|
replacing http with https will not cause a ban.
|
|
#8
|
|||
|
|||
|
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. |
|
#9
|
||||
|
||||
|
Ok, thanks!
Edited: It's working now, thanks again :up: ! |
|
#10
|
||||
|
||||
|
Great work
product has been added successfully Thank you |
![]() |
|
|