'.htaccess - deny all users except my own ip

I want to send every ipadress/user on my site to a 403 page except my own ipadress using .htaccess.

I found this solution that works everywhere but i can't make it work... When i use my ipadress on the last rule, I still get redirected to the 403. So at least the deny from all works.

Im think i'm not using the wrong ipadress because I looked it up on multiple sites.

ErrorDocument 403 /forbidden.html

order deny,allow
deny from all
allow from **.**.***.**

Hope someone can help! :)



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source