views:

126

answers:

1

I need to deny all IPs except mine.

I got my outward facing IP from whatismyip.com. Let's assume it is 200.200.200.200

Here is the beginning of my .htaccess

ErrorDocument 403 /down.html

<Limit GET POST>
order deny,allow
deny from all
allow from 200.200.200.200
</Limit>

This works with the denying part - it shows my down.html page. However it denies me even when I place my correct IP in the .htaccess. Am I doing something wrong?

Also the down.html page contains an image - but seeing as all requests are being denied, I had to host it on a different domain to get it to display. My .htaccess skills are a little rusty, but how would I go about allowing that one image request through using .htaccess on this domain?

Thanks

UPDATE

I removed some of the stuff below the rule and it worked beautifully. Now I'm just looking for the answer to the 2nd part of the question.

+1  A: 
<Limit GET POST>
order allow,deny
allow from 200.200.200.200
deny from all
</Limit>
The MYYN