Post by AskApache | Oct 07, 2007
I used to have a problem of controlling flash elements on my sites.. On one site we have 6 different flash flv movies that are all the same size and are in the same position on the page. But only 1 is displayed at a time based on what the user wants to watch. So the selected flash movie needs to have the highest stacking order/zIndex.
CSS
Oct 04, 2007
Yes, it's true! I'm the author of ping for UNIX. Ping is a little thousand-line hack that I wrote in an evening which practically everyone seems to know about. :-)
Hacking
Oct 03, 2007
Google's Search Engine Hosting Servers automatically provide Internet users all over the world with a "localized" version of the incredible Google Search Engine that we know and love.
Google
Oct 01, 2007
Optimizing the position, color, and size of AdSense Ads is confusing. The REAL way to optimize AdSense for clicks and revenue is using variations and measuring the results.
WordPress
Sep 23, 2007
Tons of awesome tips and tricks using netcat. Port redirector, nessus wrapper, capture exploits being sent by vuln scanners, etc. This is very useful for doing stuff like redirecting traffic through your firewall out to other places like web servers and mail hubs, while posing no risk to the firewall machine itself.
Security
Sep 22, 2007
Google
Sep 22, 2007
Demo php cURL code, that automatically logs into Google AdSense, using cookies and post fields with the POST method.
Google
Sep 22, 2007
I've tried 100's of Anti-virus, Anti-Rootkit, and Anti-Spyware tools over the last 10 years, but it's always good to re-examine your system's security every couple of months.
Security
Sep 18, 2007
Often I am programming a plugin, or modifying my .htaccess rules, or editing a WordPress template file and I get stuck when it comes to how WordPress rewrites url's internally. This simple plugin displays all the internal WordPress rewrites.
WordPress
Sep 17, 2007
To make your site even faster, serve certain content from different subdomains. The reason this works is amazingly cool!
Htaccess
Sep 14, 2007
Google
Sep 10, 2007
If you remove the Last-Modified and ETag header, you will totally eliminate If-Modified-Since and If-None-Match requests and their 304 Not Modified Responses.
Htaccess Cache Caching ETag Htaccess Last-Modified
Sep 10, 2007
By removing the ETag header, you disable caches and browsers from being able to validate files, so they are forced to rely on your Cache-Control and Expires header.
Htaccess Cache-Control ETags
Sep 10, 2007
A first-time visitor to your page will make several HTTP requests to download all your sites files, but using the Expires header you make those files cacheable. This avoids unnecessary HTTP requests on subsequent page views.
Htaccess Expires FilesMatch Header Htaccess
Sep 06, 2007
A lot of the past and upcoming articles on AskApache are focused on speeding up a server or website, or just making things more efficient. I'm starting several speed tip articles that require the following 3 programs if you want to follow along, that is... if you can keep up! ;)
Software
Sep 06, 2007
Before
After trick
I am often logged in to my servers via SSH, and I need to download a file like a WordPress plugin. I've noticed many sites now employ a means of blocking robots like wget from accessing their files. Most of the time they use .htaccess to do this. So a permanent workaround has wget mimick a normal browser.
Linux bash wget
Sep 05, 2007
Use the Apache module mod_deflate to compress your static .css and .js files, speeding your site up like crazy!
Htaccess compression Htaccess mod_deflate mod_gzip SetOutputFilter
Sep 05, 2007
Wouldn't it be great if you could use php and curl to download multiple files simultaneously using built-in curl functions? You can!
PHP
Aug 29, 2007
You may not think much about verifying your website with these search engines, but I am of the opinion it is extremely good for Search Engine Optimization (SEO). In fact, I read the other day on Google that if you buy a domain with a checkered past that has been punished by the search engines and you want it to be reincluded in the index this is what they recommended. Verify your sites.
WordPress
Aug 20, 2007
This is the 10th anniversary of the Alexa Toolbar, July 17, 1997. Do you remember what the Net looked like back then? Netscape was the most popular browser. AOL had released it's first Instant Messenger program in Beta. Jodie Foster's new movie Contact was number one at the box office.
Software
Aug 18, 2007
Apache Web Server users have problems getting Apache Authentication/password-protection in htaccess working, this is a troubleshooting guide to get Password Protection working!
Htaccess
Aug 09, 2007
WordPress blogs show the same duplicate content for https://www.askapache.com/index.php and https://www.askapache.com/. If you've read about using a robots.txt file for WordPress SEO, than you already understand this setup results in Duplicate Content penalties being levied against your Blog and Web Site by Search Engines.
Htaccess
Jul 04, 2007
Webmasters often use SSH to remotely admin web sites and servers, learn how to make your shell colorful and powerful using my sample .bash_profile and you can be up and running in 30 seconds!
Shell Scripting
Jul 03, 2007
Since I was disqualified and accused of cheating, which is absolutely false, I decided to go ahead and do the crime I have been punished for. That's right, I'm going to show YOU how I could have rigged the DHSOTM contest to hopefully make the statement that I absolutely did not cheat and I absolutely want to be re-instated as the winner.
Hosting
Jul 03, 2007
Google AdSense uses the robots.txt file to optimize Ads displayed on your site for the Mediapartners-Google robot
Google
Jul 02, 2007
AskApache.com won the contest for May! Thanks to all of you who voted for my site! Even though AskApache won the contest according to the rules, somehow they said I cheated by giving DreamHost too much free publicity and advertising. I love DreamHost!
SEO
Jul 01, 2007
Advanced 404 Not Found Error page usage with Google Analytics. This makes it very easy to diagnose and keep track of 404 Error messages from within google analytics. Enjoy!
Google
Jul 01, 2007
Learn how to make YOUR DreamHost promo codes work much better for YOU! This is not about promo-codes, this is about a simple method you should implement.
Hosting
Jun 30, 2007
Tupac here is using the new youtube-nocookie option, which is a slight improvement.. but flash from youtube is always gonna be slow as they are obsessed with user-metrics and pushing content at us..
Like those behind Vista, they seem to believe we all have state-of-the-art supercomputers and datacenters like they do.
I'm staying old school, resist the gui!
Web Design
Jun 16, 2007
This quick tutorial will show you the steps to change and reset any user password on a windows computer, and also show you how to protect your computer from people doing this to you!
Hacking
Jun 09, 2007
I looked at a lot of different ways to display quotes and pullquotes and even though the javascript solutions are very nice, esp. the 456bereastreet.com solution, I decided to just use CSS (Keep It Simple Stupid).
CSS
Jun 01, 2007
High Performance Web Site list of the best and newest methods to make web pages super fast using caching, compression, cache-control, etc.
Optimization
May 31, 2007
Every month a contest called DHSOTM is held for the highest rated website on DreamHost. By winning the contest your site gets SEO and traffic benefits, which I hope to measure soon.
SEO
May 31, 2007
On-Demand WordPress MySQL database Backup Shell Script for DreamHost
Shell Scripting
May 10, 2007
WordPress robots.txt file can make a huge impact on your WordPress blogs traffic and search engine rank. This is an SEO optimized robots.txt file.
SEO robots.txt
Apr 10, 2007
Server and Environment Variables are used by The Apache HTTP Server by provides a mechanism for storing information. This information can be used to control various operations such as logging or access control.
Htaccess
Apr 10, 2007
Apache has the best SSL/HTTPS support and can be controlled by the httpd.conf file or other HTTPD server configuration file. This htaccess tutorial has htaccess example code to make it easy to secure and use HTTPS and SSL with Apache.
Htaccess
Apr 10, 2007
Apache Security tips and tricks for securing Apache Web Servers using htaccess, httpd.conf, and other built-in techniques to thwart attackers. This really should be required reading for any Apache admin or user because these little tricks are so easy to do.
Htaccess
Apr 10, 2007
Htaccess AuthName AuthType FilesMatch Htaccess Password Password Protection Require
Apr 10, 2007
Caching with .htaccess and Apache will take your website and your web skills to the next level. This is some technical and advanced methods condensed to simple htaccess code examples for you.
Hacking Cache-Control cheatsheet Htaccess