PHP’s fsockopen function lets you open an Internet or Unix domain socket connection for connecting to a resource, and is one of the most powerful functions available in the php language.
Posted Wednesday in Cache, Featured, Hacking, Linux Unix BSD, PHP, Security, Webmaster3 Comments »
1 minute Install!
Turns every 404 Not Found error into a SEO traffic generating event! Now you have many unique users with unique IP addresses and cookies searching your blog on all of the Google Indexes… Sweet!
Posted Tuesday in Ajax, CSS, Google, Javascript, Making Money, PHP, SEO, Webmaster, WordPress, WordPress Plugins112 Comments »
Its really nice to be able to print out a webpage you are reading using your browsers built-in print feature. Using CSS you can easily transform your site into a print-friendly site.
Today I received an email from a visitor to my site requesting that I add a way to print site articles on AskApache
Posted Tuesday in CSS, Featured, XHTML3 Comments »
If you have a php.cgi or php.ini file in your /cgi-bin/ directory or other pub directory, try requesting them from your web browser. If your php.ini shows up or worse you are able to execute your php cgi, you’ll need to secure it ASAP. This shows several ways to secure these files, and other interpreters like perl, fastCGI, bash, csh, etc.
Posted Tuesday in Apache, PHP, Security, htaccess2 Comments »
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.
Posted Thursday in DreamHost, Linux Unix BSD, Shell Scripting, Web HostingComment »
With a rating of 8.58, this marks the highest rated DreamHost Site Of The Month Winner in the History of the Contest!
Posted Tuesday in DreamHost, Review, Web Design4 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.
Posted Saturday in WordPress3 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.
Posted Saturday in DreamHost, Web Hosting14 Comments »
Wouldn’t you love to have Akismet Anti-spam protection for non-wordpress forms and pages?
Posted Wednesday in Featured, PHP, Security, Webmaster5 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.
Posted Tuesday in Apache, DreamHost, Featured, htaccess12 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.
Posted Monday in Featured, Google, SEO5 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!
Posted Wednesday in Apache, Apache Modules, DreamHost, Featured, Security, Web Hosting, Webmaster, htaccess7 Comments »
Search all files in a directory, replacing all occurances of string with a replacement string.
Posted Saturday in Featured, Linux Unix BSD, Shell Scripting, Web Hosting7 Comments »
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.
Posted Monday in Featured, Hacking, SecurityComment »
htaccess rewrite / Mod_Rewrite Tips and Tricks is as glamorous as it sounds! htaccess rewrite mod_rewrite is just possibly one of the most useful Apache modules and features. The ability to rewrite requests internally as well as externally is extremely powerful.
Posted Thursday in Apache, Cache, DreamHost, Featured, SEO, Security, htaccess47 Comments »
Want to block a bad robot or web scraper using .htaccess files? Here are 2 methods that illustrate blocking 436 various user-agents.
Posted Tuesday in Apache, Featured, Hacking, Security, htaccess15 Comments »
A WordPress plugin that caches your entire blog for WP-Cache, I love this plugin and finally released it to the public!
Posted Tuesday in Cache, WordPress, WordPress Plugins18 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.
Posted Monday in Featured, Hacking, Security1 Comment »
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.
Posted Saturday in Security, Webmaster, htaccess9 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!
Posted Saturday in Apache, DreamHost, Featured, SEO, htaccess7 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.
Posted Saturday in Apache, Hacking, PHP, Security, WordPress, WordPress Plugins85 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.
Posted Friday in Ajax, Apache, Featured, Javascript, PHP, Security, htaccess1 Comment »
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..
Posted Wednesday in Featured, Google, Making Money, Webmaster17 Comments »
Learn about the 7 different HTTP response codes specifically reserved for redirection. 301, 302, 303, 304, 305, and 307.
Posted Wednesday in Apache, Featured, SEO2 Comments »
Scan Apache logs for IP address that are probably evil, then generates an .htaccess file to DENY them all.
Posted Sunday in Apache, DreamHost, Security, Shell Scripting4 Comments »
Implementing an effective SEO robots.txt file for WordPress will help your blog to rank higher in Search Engines, receive higher paying relevant Ads, and increase your blog traffic. Get a search robots point of view… Sweet!
Posted Saturday in Featured, Google, SEO, WordPress38 Comments »
If you desire SPEED from your WordPress blog, the #1 speed improvement comes from using the WP-Cache Plugin. If you still desire SPEED after installing the Plugin, you can modify the WP-Cache Plugin code to make your blog even faster!
Posted Tuesday in Cache, Hacking, WordPress2 Comments »
Using Cache-Control headers you can specify which types of proxies can cache certain content, and how long files should be cached.
Posted Monday in Apache, Cache, DreamHost, Featured, WordPress, htaccess4 Comments »
Part II: Example illustrating how to speed up GET/POST form submissions. Uses fsockopen to initiate a server-side background request to process the submitted data, so that the result page of the form is displayed to the client lightningly quick.
Posted Tuesday in Ajax, Apache, Cache, Featured, Javascript, Linux Unix BSD, PHP, Security, Server Administration, Web Design, Web Hosting, Web Tools, Webmaster, htaccess, mod_rewrite3 Comments »
How To remove the /category/ from WordPress category urls.
James
We’re using WP as a CMS with pages and posts. Done a bit of customization, so it looks sweet. Problem – i have some child categories that throw 404 when the category redirect is in place. How did you remove the category base from the url structure in wordpress?
Posted Saturday in Hacking, SEO, WordPress5 Comments »
Nifty SEO tip to get Search Engine Bots to check your site every hour until you finish working on it and tell them you are finished.
Posted Thursday in Apache, DreamHost, Featured, Google, PHP, SEO, htaccess10 Comments »
Just a very brief look at speeding up form submission by delegating the processing and bandwidth to your server, not your client.
Posted Tuesday in Cache, Featured, Linux Unix BSD, PHP, Server Administration, Web Design, Web Hosting, Web Tools, Webmaster1 Comment »
A hit-list of some of my favorite mod_rewrite code snippets for .htaccess files
Posted Saturday in Apache, SEO, htaccess3 Comments »
WordPress plugin gives you control over HTTP Basic Authentication for your WordPress blog which among other things, stops most automated hacking attempts and exploits being attempted, cutting down on the number of requests, connections, and mysql queries for all WordPress blogs on the Internet.
Posted Thursday in WordPress Plugins14 Comments »
How I was able to preload many flash flv and swf files on one of my clients sites that has a lot of online video and relatively small traffic. Their site visitors would usually watch 3-10 videos per visit and so to make the videos load almost instantly on every page I came up with a way to preload the top 10 .flv files and the swf flv player files as soon as the visitor successfully started watching the 1st video. Of course I also setup .htaccess caching on the server so that once they downloaded the files into their cache they would never request them from the server again. I was having fun with this so its pretty funky and uses some really cool combinations of javascript, swf preloader from xml, css classes to help automate it all..
Posted Monday in Cache, Flash, Web Design, htaccess4 Comments »
A plugin built to generate static files from php+mysql for Apache to serve the way its supposed to be.. My dream. Conclusion: Needs some improvement, pretty sweet though.
Posted Wednesday in Cache, PHP, WordPress, htaccess9 Comments »
Host Google Analytics ga.js file locally for increased speed! Makes web pages load faster.
Posted Wednesday in Google, Linux Unix BSD8 Comments »
This plugin has been updated for WordPress 2.5 and includes more options to get your site indexed by Google and Yahoo.
Posted Wednesday in Google, SEO, WordPress, WordPress Plugins3 Comments »
Learn how to log and debug usernames and passwords used to login to a htaccess basic authorization protected website using php. This article is BOSS and will show you how to fully take control of this aspect of security using php and .htaccess, I don’t believe you will find instructions to do this anywhere else on the net.
Posted Tuesday in Apache, Featured, PHP, htaccess3 Comments »
For the AskApache Google 404 WordPress Plugin update I added a new 404.php that is more advanced than anything previously seen for a 404.php
Posted Tuesday in WordPressComment »
Please consider donating to support active development of the free software and articles here.![]()
The power of the Web is in its universality. Access by everyone regardless of disability is an essential aspect. Tim Berners-Lee
It's very simple - you read the protocol and write the code. -Bill Joy
HTML | DCMI | GRDDL | XOXO | XDMP | XFN | DOM | XML | XHTML 1.1 Strict | CSS 2.1 | W3C | TLDP | WAI | DISA | ICSI | GIAC | SANS RR | GHOST | DEFCON | NIST | DHS CYBER | NIST
↑ TOPExcept where otherwise noted, content on this site is licensed under a Creative Commons Attribution 3.0 License, just credit with a link.
This site is not supported or endorsed by The Apache Software Foundation (ASF). All software and documentation produced by The ASF is licensed. "Apache" is a trademark of The ASF. HTTPD based on NCSA HTTPd