Categories

Reverse proxy for Google APIs

As you all know, Google services are banned in China due to some sensitive reasons. To provide a better experience for visitors from China, I built a reverse proxy for the Google Fonts API and Google Map API using the Proxypass in Apache. You can use the service without any credit, but please prevent any forms of abuse for sustaining the service.

众所周知,由于某些敏感的原因,Google的服务在中国被Block了。为了给中国的访客提供更好的体验,我利用Apache的Proxypass为谷歌在线字体和谷歌地图建立了一个反向代理。欢迎使用这项服务,但是为了让这项服务可以持续运行,请避免任何形式的滥用。

 

使用方法 Usage:

替换谷歌字体API | Replace the Google Fonts API like this:

<link href="https://fonts.wenfan.cn/css?family=Roboto" rel="stylesheet">

 

替换谷歌地图API | Replace the Google Map API like this:

<script type='text/javascript' src='https://maps.wenfan.cn/maps/api/js?key=YOURKEY'></script>

 

替换后的API强制使用https。如果使用过程中有任何问题,欢迎在下方留言。

Https mode is required after the proxying. Please leave a message below if you have difficulty when using the Google API Reverse Proxy service.

Share

Your comment

Your email address will not be published. Required fields are marked *