We found 0 resources for you...

Restricting access to your site with .htaccess

Being a server administrator, I am no stranger the “.htaccess” file.  In fact most web administrators/master should know what this files does.  Today’s issue however is not something an administrator would normally come across, in fact, I found NO documentation on this particular solution and had to come up with it on my own, using a few differed resources on the net.

Problem:

At work my department had an internal site which was accessible only from a certain IP address.  So having the following works great:

[code]AuthName "Internal Portal"
AuthUserFile "/var/www/internal/.htpasswd"
require valid-user
Order Deny,Allow
Deny from all
Allow from 192.168.1.100
Satisfy Any[/code]

However our firewall settings prevented the functionality I needed (the sites are on our gateway, which does not allow traffic to itself via the outside world, so some WordPress features just wouldn’t work) so I decided to put our site on our regular cPanel server.  …

Continue reading

Adding a Google Calendar event using Google Forms

For a long time now I have been trying to find an easy way for the volunteers under my command to submit vacation requests.  I searched high and low for a PHP scheduler but nothing suited my needs.

I the realized that google had a calendar API which would allow external forms to add events to my calendar, but sadly this didn’t pan out either till I found out that Google also had its own form generator.  But sadly again, doing searched on how to add an event to Google Calendar from the form turned up either useless or empty.

I did manage to find a script that came close to what I wanted.  …

Continue reading