In this example, if you want to allow access only to the IP address 1.2.3.4, the code you would add to your .htaccess file is:
# Order Allow, Deny
Deny from All
Allow from 1.2.3.4
The Order directive specifies the sequence in which the allow and deny rules are processed. In the above example, the Allow rule is processed first, followed by the Deny rule. This means access is allowed from the IP 1.2.3.4 and denied for all other users.