Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Use favicon from other site?

Tags:

favicon

If I link to a favicon in my head from another domain will it work ok? I want to use the same favicon as an existing site, and my new site may end up being a different domain altogether or a sub domain of the existing one. Thanks a lot

like image 277
Evanss Avatar asked Jun 17 '11 14:06

Evanss


2 Answers

Put this in the head tag:

<link rel="shortcut icon" href="your url here">

It'll work fine, but leeching (stealing bandwidth from another server) isn't cool. Host it on your own server or ask the webmaster for permission.

like image 64
iamandrus Avatar answered Oct 21 '22 08:10

iamandrus


Yes you may do this, favicon is treated just as any other HTTP resources on page, so it can be external.

like image 26
Adam Avatar answered Oct 21 '22 07:10

Adam