Archives for: "January 2012"

Zend_Rest - Example

I built a REST API and calling code using Zend Framework. This code also uses Doctrine (http://www.doctrine-project.org/projects/orm). Prior to coding, I reviewed several resources on the 'net in an attempt to follow best practices. I visited the f… more »

Filtering Spam - Tips & Ideas

SSH in to the server and find the affected inbox. Quick Look at the inbox This command shows the From, X-Spam-Bar, and Subject, without the file name. If you want to see the file names, remove the -h. You may have to use a different header for the s… more »

Denying access based on HTTP referer

To deny access to a site based on the referer URL, you can use Apache rewrite rules. In the sample below, any referral that ends with .ru, .ua, or .tv will be rejected and redirected to the forbidden page (a 403). CodeRewriteCond %{HTTP_REFERER} !^$Re… more »