Libravatar offline

Asked by andymac on 2013-09-18

Hello!

Is it possible to use Libravatar on a network without internet access avoiding substantial modifications to the source code?

Thank you,
Andrey.

Question information

Language:
English Edit question
Status:
Solved
For:
Libravatar Edit question
Assignee:
No assignee Edit question
Solved by:
andymac
Solved:
2013-09-23
Last query:
2013-09-23
Last reply:
2013-09-19
Fran├žois Marier (fmarier) said : #1

It should be possible. What you would have to do is run a local (unmodified) instance of the main Libravatar codebase, but then you would have to hardcode the URL for it (e.g. http://avatars.intranet.example.com) when generating avatar URLs in your applications.

Because if you use one of the existing libraries for getting the avatar URLs, then they will do a DNS lookup and fallback to libravatar.org.

andymac (andymac) said : #2

Thank you! And what about brosew_id/persona stuff? Is it necessary to work properly offline?

andymac (andymac) said : #3

I guess I found answers to my questions! Thanks for the software!