WebFaction
Community site: login faq

Hi All,

We're building a site that publishes a feed to an ICS format (iCalendar), which is then imported into Google. The whole site is password protected but we cannot get this to work with the feed, it has to be on the web. But then, anybody can access it. I was wondering if there was some way to:

  1. Restrict, via htauth, access to that page only to the Google Calendar "bot"
  2. Restrict, via PHP, access only to any IP on google servers,
  3. Any other ideas?

Thanks much...

asked 05 May '14, 14:41

soca_kin
1318
accept rate: 0%


If you use HTTP auth, then you might be able to include the username and password in the URL that you give to Google, like http://user:password@domain.com/your_calendar.ics.

Your idea of restricting by IP could work, either by restricting IPs via .htaccess, or by doing it somewhere in your code. That said, Google has a lot of IPs, and it could be a burden keeping up with them.

The best solution might be to forgo publishing your ICS directly to Google, and instead use the Google Calendar API to build your own mechanism for keeping a Google-hosted calendar synced up with your site's calendar. googlecalendarsync appears to do exactly that, but it seems to be a fairly old project. Might be a viable starting point though!

permanent link

answered 06 May '14, 00:36

seanf
12.2k42136
accept rate: 37%

edited 06 May '14, 00:37

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×45
×15
×2
×1

question asked: 05 May '14, 14:41

question was seen: 2,455 times

last updated: 06 May '14, 00:37

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2021 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM