• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

IMG Cacher - SSL Keeper

Admin

Well-Known Member
Staff member
Administrator
This is something I made awhile back,
Pretty much you use this when you want to keep the SSL certificete working on pages that people may use tag's without [url]https://.[/url]


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.


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>' : '');
}
[/code]
Plugin is active: Yes




edit "[LINK_TO_YOUR_WEBSITE]" - Without http, example: [url]www.dragonbyte-tech.com[/url] or [url]www.internot.info[/url] 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]


Also I suggest you add something like this to .htaccess:
[code]
<FilesMatch "cache\.php$">
Header set Cache-Control "max-age=86400, public"
</FilesMatch>
[/code]


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

[DOWN] [b][url="http://www.mediafire.com/?nvgkkezlkfx0ktg"]img_cache2.zip[/url][/b][/DOWN]
 

Facebook Comments

Similar threads
Thread starter Title Forum Replies Date
T Share Hướng dẫn mod auto hình ảnh không dùng bbcode [img] cho johncms Johncms 0
Admin Share Auto Link Content VBB : Youtube, NCT, IMG, MP3 Zing (HOT) Update 20/10 Add-ons 0
Admin Share filelist auto get ảnh đại diện từ thẻ img đầu tiên Wap builder, wapego, xtgem, wen.ru, wapka, wap4 4
A Share Filelist xtgem auto get ảnh từ thẻ img All Shared Scripts 0
Admin Google dork up shell img Hacking 2
Admin Convert [IMG] and [VIDEO] to [URL] in quoted text Add-ons 0
Admin Encode IMG URL - Chống copy hình trong bài viết cho vbb all version Add-ons 0
Admin Hướng dẫn fix bbcode img url cho johncms 4.4 Johncms 0
Tjeuphong Ae cho mình xin vài cái img Vbulletin 11
Admin Share ssl 5 năm chỉ 13.25$ tương đương mỗi năm chỉ 2.65$ tại ssls.com công ty con của Namecheap Chia sẻ mã giảm giá 0
Admin Share khóa học quản trị viên hệ thống - Nginx, Apache, SSL Encryption - System Administrator Certification Course (2020) VPS & Dedicated Server 0
K KINDY.PRO Chuyên bán VPS Windows , Linux, SSL giá rẻ VPS & Dedicated Server 0
toanvietnix Thảo luận SSL - Chứng Chỉ Bảo Mật - Mã hóa toàn bộ thông tin Website - Bảo Vệ Webiste luôn an toàn. VPS & Dedicated Server 0
keanyaw SSD VPS Hosting 50% OFF | FREE SSL | FREE Backup Chia sẻ mã giảm giá 0
N Đăng ký Hosting tại HostingNhanh chỉ 19,000 VND/ Tháng + SSL Miễn phí Hosting / Domain 0
N Share Đăng ký Hosting tại HostingNhanh chỉ 19,000 VND/ Tháng + SSL Miễn phí Hosting & Domain Share 0
haopro Nonstop Nonstop 2018 SSL Tặng Em Cô Gái Bán Kẹo - DJ Huy Kon Âm nhạc 0
haopro Nonstop [ VSG ] NST SSL Fleur D'or Hải Phòng - DJ Kenny Hoàng Âm nhạc 0
PiPyL Hosting, SSL, VPS chất lượng tốt cho sinh viên chỉ từ 20k Hosting & Domain Free 11
PiPyL Hosting, VPS, SSL chất lượng tốt giá chỉ từ 10k Hosting & Domain Free 12
PiPyL Khuyến mãi Hosting, SSL, VPS giá rẻ, chất lượng tốt nhất Hosting & Domain Free 11
T Domain, Hosting, VPS, SSL chất lượng, uy tín cho khởi nghiệp Tin tức CNTT 4
H VSHOP.ME Chuyên bán acc digital ocean - domain .me chính chủ - ssl cho domain giá rẻ Hosting / Domain 0
S 1000 Pack Hosting Free - SSL Very Inc [VN] Hosting & Domain Free 0
Admin Free ssl 90 ngày VPS & Dedicated Server 2
Admin SSL là gì ? VPS & Dedicated Server 0

Similar threads

New posts New threads New resources

Back
Top