.htaccess – Deny IP & Block IP Range

The .htaccess file is a configuration file for the Apache web server, that can be used to restrict access to a web-site from a specific IP or a range of IP addresses.

In this note i will show how to deny access from one or several IP addresses via .htaccess file and how to block access from a range of IP addresses or from entire subnets. (more…)

Redirect Site to Maintenance Page using Apache and HTAccess

In this article you will find how to redirect all traffic and all visitors of your site to a maintenance page during site updates.

I’ll show how to create a maintenance page, how to put the site into a maintenance mode and how to bring it back online without restarting Apache.

You’ll learn how to redirect Apache Vhost’s traffic to a maintenance page using either VirtualHost configuration file or using .HTAccess file. (more…)