Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 01-21-2015, 04:01 PM
Mellnik Mellnik is offline
 
Join Date: Dec 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default https image proxy

I am looking for a way to proxy non-SSL, images which users post, to a https image proxy.

Of course the proxy should not proxy every image, only those being posted on the forum and signatures.

bitcointalk.org has such system working. How to do it on vB4 or vB5?

I think a plugin would be very appreciate for many.
Reply With Quote
  #2  
Old 01-21-2015, 04:04 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I see you already found the other thread where we were talking about this. Does this not do what you want: https://vborg.vbsupport.ru/showthread.php?t=288060 ? Later in the thread someone posted a change so that it just acts as a proxy and doesn't store it on your server.
Reply With Quote
  #3  
Old 01-21-2015, 04:22 PM
Mellnik Mellnik is offline
 
Join Date: Dec 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Well I think the main problem here is that it does not prevent users from putting arbitrary image URLS to the proxy?
Imagine someone puts images with illegal content on it...

Also, this does this cover signatures?
Reply With Quote
  #4  
Old 01-31-2015, 08:35 AM
Mellnik Mellnik is offline
 
Join Date: Dec 2011
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Does anyone have an idea on how to restrict the image proxy to images actually posted on the forums?
Reply With Quote
  #5  
Old 01-31-2015, 09:31 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can think of a couple of ways. You could just keep a database table of allowed urls, but now your proxy has to do a database lookup (which may or may not be an issue). I was thinking of creating a hash of the url and a secret and including that as a parameter, then the proxy can use that to check. But a problem with that scheme is that you can't "revoke" one once it's out there.
Reply With Quote
  #6  
Old 01-31-2015, 11:03 AM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I downloaded an addon that does this, I downloaded the addon from here. I just modified it to work better with my server configuration. I just have to find it again.

However, when someone posts a non SSL URL to an image, the system automatically caches the images and stores it on your server, and replaces the HTTP Image URL with the Cached SSL/HTTPS Image URL. So your site doesn't warn users of mixed unsecured content.

I will try to find it on here and post the link when I find it.
Reply With Quote
  #7  
Old 01-31-2015, 11:18 AM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think that's the link I posted in post #2.
Reply With Quote
  #8  
Old 01-31-2015, 12:00 PM
thetechgenius's Avatar
thetechgenius thetechgenius is offline
 
Join Date: Jun 2014
Posts: 258
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
I think that's the link I posted in post #2.
I just looked at the Addon you linked to, and yes that is it! I have it on my site, and it works perfect. The Addon does all the work for you, the end-user or you, dont have to do anything. It automatically caches the image, and replaces the URL in the post with the cached image URL.

I like how the addon also keeps the original website in the cached URL, so you know exactly where the image came from.

Like this:

Code:
https://example.com/cache.php?img=http%3A%2F%2Fi58.tinypic.com%2F2111269.png
And the % and other weird characters in that URL, are slashes. They are basically codes for slashes in a URL.
Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 02:02 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04450 seconds
  • Memory Usage 2,221KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete