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
Use DVZ Content Secure
(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.

This doesn't work to me Sad

I have tried in mycode and word filter but nothing, always http instead of https
DVZ Secure Content is the plugin you're looking for.
(2017-07-30, 09:40 PM)niere8 Wrote: [ -> ]
(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.

This doesn't work to me Sad

I have tried in mycode and word filter but nothing, always http instead of https

Sorry can't help, it's working fine on three forums for me with a word filter.
(2017-06-16, 12:04 AM)Wage Wrote: [ -> ]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

Thanks for the link, used the plugin, removed the proxy part but it doesn't seem to have any effect (yes I changed my board url etc). Using mybb 1.8.12.
Any idea why it isn't working?
(2017-09-25, 10:46 AM)bositman Wrote: [ -> ]
(2017-06-16, 12:04 AM)Wage Wrote: [ -> ]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

Thanks for the link, used the plugin, removed the proxy part but it doesn't seem to have any effect (yes I changed my board url etc). Using mybb 1.8.12.
Any idea why it isn't working?

Did you make sure to add the hosts that you want rewritten to the $find variable?

Think I found the file I was using a while back, here you go: https://gist.githubusercontent.com/wagey.../https.php
Now, imgur is ssl so probably it not need any mods to integrate in Mybb ssl websites. Right?
(2018-04-30, 01:01 PM)Lyvyoo Wrote: [ -> ]Now, imgur is ssl so probably it not need any mods to integrate in Mybb ssl websites. Right?

That certainly helps (especially if using image proxies for non-HTTPS resources only), but users can still enter http-based URLs - for Imgur and other sites - which can result in insecure resources being loaded. It's best to cover all cases.
Pages: 1 2