KosherDev | Blog about kosher programming

‍‍25 November 2009 - 8 Kislev 5770

WordPress plugin to lock site for Shabat

I think it is good idea to close sites, related to Judaism for Shabat. This will not make non-observant Jews to break Shabat laws.

This morning, I’ve got an idea, that it would be nice to make a plugin for WordPress to lock the site for shabat. I looked to the repository of Worpress plugins and haven’t found anything related.
Then I decided to make a fork from any under-construction plugin. I found a simple and really nice one.
UnderConstruction by Jeremy Massel and modified to meet my needs.

This is my first plugin for WordPress, so don’t blame me too much.
Installation:
1. Download it from here.
2. unpack to wp-content/plugins
3. Enable it
4. Go to Settings -> Shabat Keeper and enter Lattitude, Longitude and GMT Offset

Here you are. 18 minutes before Sunset on Friday your site will be locked and will return on Motzey Shabat.

I really need testing on this plugin. So everybody welcome to add suggestions and bug here.

RSS Feed

  • KosherJava | ‍‍Nov 25, 2009 - 9 Kislev 5770 at 9:56 am

    Interesting. I am not going to get into the halachic question about keeping a non commercial site open on Shabbos. On a technical/halachic note, who’s clock should you look at? Yours in Estonia, or the user’s clock elsewhere? If the point is to prevent chilul Shabbos, it should be from the user’s perspective. For a site selling items, I can make the point that it should be from both perspectives, something that will force an almost 48 hour downtime if you want to look at it from your and the user’s perspective. On a different note, do you allow bots in on Shabbos?

    • Moishe Beshkin | ‍‍Nov 25, 2009 - 9 Kislev 5770 at 11:16 am

      That’s a very good point. I was thinking about the problem on which time to deny access to site – server’s or user’s one.
      I know about possibility to determine location by IP. And I am going to implement it in future releases. For now, I decided to start from small functionality as a proof of concept.
      I think that the best way is block on server side according to Estonian time (as soon as i reside here), but on user’s perspective from his location. So, total outage time will not be 48 hours, but much less.

      This filter substitutes site content on server’s side, so bots also will get shabbos block page.

      • bahaltener | ‍‍Nov 25, 2009 - 9 Kislev 5770 at 3:36 pm

        I think it’s an “overkill”. There is no need to shut down automatic entities on Shabbos (robots, sites, etc). On the other hand, non Jews can look at them. It’s enough if you put an automatic notice before Shabbos, that on Shabbos Jews shouldn’t use your resource, in order not to violate the Halocho.

        • Moishe Beshkin | ‍‍Nov 25, 2009 - 9 Kislev 5770 at 4:06 pm

          But what about getting so popular now blocking utilities?
          Here is interesting investigation on this issue http://koltorah.org/halachah/closing-website-shabbat-and-yom-tov-%E2%80%93-part-two
          I think, I would allow my plugin users to choose which option to disable for shabat. The minimum, which should be done, I think, is to disable commenting across the website.

          • bahaltener | ‍‍Nov 25, 2009 - 9 Kislev 5770 at 5:33 pm

            I think the bottom line is – technically there is no need to close a site for Shabbos. However I guess, there is some difference between a business site, and non profit site (even though some allow even a business site to operate if it’s automatic).

            • Shabat keeper 0.3 - KosherDev | ‍‍Nov 27, 2009 - 10 Kislev 5770 at 4:36 am

              [...] select how to lock the site. There are only two options for now: – Full lock. As it was introduced before, site will be locked fully with proper message – Comments lock. This will lock possibility to write [...]

              (Required)
              (Required, will not be published)

              <<

              >>

              

              Comments on Kosherdev.com are closed for Shabat

              You are from

              It will be possible to comment after 25 May 21:40

              Theme Design by devolux.org