Profile of randompixels
Snippets posted by randompixels
To add Expires tags to your website, paste this into your root folder .htaccess file
Added on: 13 January 2010
and tagged with: expires-tag htaccess mod_expires
This is an easy way to block spambots or undesired visitors from your website, using nothing only than the .htaccess file.
Also, you can use this in reverse to allow only specific IPs to visit your website (e.g. an Intranet site)
Added on: 12 January 2010
and tagged with: htaccess htaccess-allow htaccess-block
To take a quick look at which Apache Modules are installed and activated simply paste this code somewhere in your PHP file.
Added on: 12 January 2010
and tagged with: apache apache-modules php