Redirect all except selected IP to another url

From DevOps Notebook

Edit .htaccess :

RewriteEngine On
RewriteBase /
RewriteCond %{REMOTE_HOST} !^1.2.3.4
RewriteRule .* https://sendfileto.net [R=302,L]