Skip to content

owen0o0/getFavicon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getFavicon

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

演示

演示地址

安装使用


  • 如果出现获取不了的情况建议删除缓存再试一次
  • 注:文中 faviconw 为 api 文件夹,酌情设置

伪静态

方便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 和编写了获取方法。

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages