Need to block accessing our site using ip address .
It should be only accessible with name i.e www.goodworks.com
and it should not be availabe with ip address .
My server ip 10.0.0.50 .
I have tried like , created a .htaccess and added
deny from 10.0.0.50
allow from all
Not working .
My purpose is ,if somebody hits the ip 10.0.0.50 ,nothing should come in browser .
Any help is highly appreciable .
thanks in advance .