Post by AskApache | Jun 12, 2008 | 1 comment
This simple unix shell script automatically creates backups of a specific folder at regular hourly, nightly, weekly, and monthly intervals. Instead of the usual method for copying directory trees using tar with fifo, pipes, rsync, or NFS methods this script uses cpio which is much much faster and has cool options like saving m/a/c times, symlinks, relative paths, and weird file names.
Category: Shell Scripting
Post by AskApache | Jun 03, 2008 | 4 comments
With a rating of 8.58, this marks the highest rated DreamHost Site Of The Month Winner in the History of the Contest!
Category: Hosting
Post by AskApache | May 31, 2008 | 8 comments
Registering on a WP blog requires entering a username and email then checking your email for an auto password.
Too much work to put your users through?
This uses just email and password and does it all.
Category: WordPress
Post by AskApache | May 31, 2008 | 14 comments
DreamHost PS gives you your own "virtual machine", protecting your CPU and RAM on your physical machine for faster websites. Here's what I like and dislike about DreamHostPS, and some of the issues and solutions for migrating.
Category: Hosting
Post by AskApache | May 28, 2008 | 7 comments
Learn how in a year, with no previous blogging experience this blog was able to rank so high in search engines and achieve 15,000 unique visitors every day. Uses combination of tricks and tips from throughout AskApache.com for Search Engine Optimization.
Category: SEO
Post by AskApache | May 07, 2008 | 6 comments
Wouldn't you love to have Akismet Anti-spam protection for non-wordpress forms and pages?
Category: PHP
Post by AskApache | Apr 29, 2008 | 21 comments
This is freaking sweet if you use SSL I promise you! Basically instead of having to check for HTTPS using a RewriteCond %{HTTPS} =on for every redirect that can be either HTTP or HTTPS, I set an environment variable once with the value "http" or "https" if HTTP or HTTPS is being used for that request, and use that env variable in the RewriteRule.
Category: Htaccess
Post by AskApache | Apr 23, 2008 | 11 comments
Mod_Security rivals Mod_Rewrite in the amount of features it provides. I decided to go ahead and post what I learned about it today, even though its tough to give away such awesome htaccess and apache tricks.. Learn how to control spam once and for all, conditionally log/deny/allow/redirect requests based on IP, username, etc.. Mod_Security is so fine!
Category: Htaccess
Post by AskApache | Apr 19, 2008 | 8 comments
Search all files in a directory, replacing all occurances of string with a replacement string.
Category: Shell Scripting
Post by AskApache | Apr 14, 2008 | comment
I have been in some tight spots where I had to sniff a password or two off the wire, or sniff some packets off the wire and based on the packets content perform some action... Accidentally, I stumbled on a method to sniff data while remaining undetected and invisible.
Category: Hacking
Post by AskApache | Apr 08, 2008 | 24 comments
Want to block a bad robot or web scraper using .htaccess files? Here are 2 methods that illustrate blocking 436 various user-agents.
Category: Htaccess
Post by AskApache | Apr 01, 2008 | 27 comments
A WordPress plugin that caches your entire blog for WP-Cache, I love this plugin and finally released it to the public!
Category: WordPress
Post by AskApache | Mar 30, 2008 | 2 comments
There isn't much vlan info on the net in terms of specifics and I had to learn all about it because I needed to log in to a switch that was on a different vlan. With the help of the Ettercap developers NaGA and ALoR I figured it out.
Category: Hacking
Tags: Hacking, security
Post by AskApache | Mar 29, 2008 | 21 comments
SSLOptions +StrictRequire
SSLRequireSSL
SSLRequire %{HTTP_HOST} eq "google.com"
ErrorDocument 403 https://google.com
Some of the Ins and Outs of using SSL Connections with Apache.
Category: Htaccess
Tags: 301 Redirects, Htaccess, mod_rewrite, SSL
Post by AskApache | Mar 29, 2008 | 12 comments
Fresh .htaccess code for you! Check out the Cookie Manipulation and environment variable usage with mod_rewrite! I also included a couple Mod_Security .htaccess examples. Enjoy!
Category: Htaccess
Post by AskApache | Mar 29, 2008 | 115 comments
AskApache Password Protect adds some serious password protection to your WordPress Blog. Not only does it protect your wp-admin directory, but also your wp-includes, wp-content, plugins, etc. plugins as well. Imagine a HUGE brick wall protecting your frail .php scripts from the endless attacks of automated web robots and password-guessing exploit-serving scripts.
Category: WordPress
Post by AskApache | Mar 28, 2008 | 2 comments
This article shows how to save and modify php session data, cookies, do anything really... without using ajax or iframes or forcing the user make a request.
Category: PHP
Post by AskApache | Mar 26, 2008 | 25 comments
Google Analytics for your clients sites is a no-brainer, it ROCKS! I have 100+ client sites running Analytics and all of them have trouble-free (no password or username to remember) access to their site reports. Thanks to the method in this post, my clients couldn't be happier..
Category: Google
Post by AskApache | Mar 26, 2008 | 2 comments
Learn about the 7 different HTTP response codes specifically reserved for redirection. 301, 302, 303, 304, 305, and 307.
Category: SEO
Post by AskApache | Mar 16, 2008 | 5 comments
Scan Apache logs for IP address that are probably evil, then generates an .htaccess file to DENY them all.
Category: Security