Go to file
owen edee81fc2f 20230220
修复错误
增加刷新缓存参数:refresh=true
增加获取数据失败时自动查询第三方api数据
2023-02-20 15:01:17 +08:00
cache the first 2019-11-26 19:16:45 +08:00
Favicon.php 20230220 2023-02-20 15:01:17 +08:00
LICENSE the first 2019-11-26 19:16:45 +08:00
README.md Update README.md 2020-02-09 14:53:05 +08:00
favicon.png the first 2019-11-26 19:16:45 +08:00
get.php 20230220 2023-02-20 15:01:17 +08:00

README.md

getFavicon

获取网站的Favicon图标并显示在你的网页上.

演示

演示地址

安装使用

伪静态

方便cdn缓存

# Nginx规则
rewrite ^/favicon/(.*)\.png$ /favicon/get.php?url=$1;

# Apache 规则
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^favicon/(.*)\.png$ favicon/get.php?url=$1 [L]
</IfModule>

调用方法 http://you.url/favicon/www.iowen.cn.png

  • 注:目标网址不能有 http(s)://

感谢

感谢 jerrybendy ,此版本只是修复一些 bug 和编写了获取方法。