I've created an .htaccess file in the root of my web server (/var/www/html) to block 1 particular ip from accessing the site.
Here it is:
deny from all
deny from ***.***.***.***
Fairly simple right? Everything works fine...i've tested it from that particular IP and the user couldnt access anything. For example: mysite.com/games or mysite.com/pics would return a 403 unauthorized page like it should.
My problem lies in that when the person visits www.mysite.com
they don't get the 403 error page. They get the CentOS Apache test page. I'm totally dumbfounded as to what is causing this...can anyone shed some light?