欢迎使用网站favicon图标获取库

好网址导航 [ 网址:www.msg8.site ]


本库主要原理是中转调用谷歌网站图标库【https://www.google.com/s2/favicons?domain=】并返回对应图标


使用方法:

https://code.msg8.site/favicon/index.php?url=[要获取对应图标的网站URL地址]


举例:https://code.msg8.site/favicon/index.php?url=https://www.msg8.site/

举例:https://code.msg8.site/favicon/index.php?url=https://www.msg8.site/index.php

举例:https://code.msg8.site/favicon/index.php?url=https://www.msg8.site/index.php?test=12345


PHP代码举例:
file_get_contents('https://code.msg8.site/favicon/index.php?url=https://www.msg8.site/',false,stream_context_create(['ssl'=>['verify_peer'=>false,'verify_peer_name'=>false,]]))