Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   TBDev (http://www.bvlist.com/forumdisplay.php?f=20)
-   -   External image proxy modifications (http://www.bvlist.com/showthread.php?t=11931)

Tedmorris 14th February 2019 21:39

Thx m8, you have been a huge help. Much appreciated.

I'm not sure if I should try doing it with a function like your code or use the php function parse_url() to do all the work.

I'm guessing you proxy all images even if they are already https as I dont see anything that looks for a https match or specifys the function only for http images.

darkalchemy 14th February 2019 21:48

That's correct. I proxy all images. So I don't have to deal with image not found when the image finally gets deleted from the host.

Besides proxying all external images, my function also anonymizes non image urls. So every external url passes through that function.

Btw, "i' in regex/preg_match make the regex case-insensitive.


All times are GMT +2. The time now is 14:36.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.