MyBB Community Forums

Full Version: force Imgur url's to use https ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
If a user inserts an imgur hosted image into a post using http://imgur.com is there anyway to have mybb force or rewrite the url to use https://imgur.com instead?
(2017-06-15, 11:31 PM)mrdon515 Wrote: [ -> ]If a user inserts an imgur hosted image into a post using http://imgur.com is there anyway to have mybb force or rewrite the url to use https://imgur.com instead?

Not really. You can try this plugin 

https://community.mybb.com/mods.php?action=view&pid=450

to help preserve your pages with secure content.
Thanks. I do already have that plugin and it works great. However it make non-secure images/videos a link instead of showing the actual image. I know it has a feature to proxify the images, but I'd rather not have to do that.
It is not possible to change all http links to https without a plugin, this would disrupt linking to sites that aren't using SSL. Assuming your site is forced https, then I recommend implementing proxify if you can't afford for some users images to be displayed is links.
Yes it's possible.

https://gist.github.com/Cameron-D/a685a83196650991875c should still work. I remember using it about a year ago.

You may have to do a few edits if something doesn't work right. I had used it and added a bunch of hosts so if I happen to find the plugin in storage anywhere I'll give it to you.

If you decide to use a proxy and just want to go with something that works and is free I'd recommend using weserv.nl
See: https://community.mybb.com/thread-206338...pid1254693
Thank you for this^
A word filter works.

Word:
http://i.imgur.com

Replacement:
https://i.imgur.com

All existing and new Imgur Url's will change to https.
(2017-06-17, 01:04 PM)sarisisop Wrote: [ -> ]A word filter works.

Word:
http://i.imgur.com

Replacement:
https://i.imgur.com

All existing and new Imgur Url's will change to https.

That would also change https to httpss.
Quote:That would also change https to httpss.

No it shouldn't. If you're encountering that issue something may be wrong with your installation.
(2017-06-18, 02:41 AM)Wage Wrote: [ -> ]
Quote:That would also change https to httpss.

No it shouldn't. If you're encountering that issue something may be wrong with your installation.


I can assure it works, I'm using it on 3 forums with no problems.

I also have another word filter to convert all http images to https.

Word:
http

Replacement:
https

If an image doesn't have https it will convert it, if however the image server doesn't have ssl (for example tinypic) the image won't show and you will not get flagged up for having insecure images.  

Why not try it and see, you can always remove it if your not happy.
Pages: 1 2