Block access to specific port

I wanted to block specific port in my webserver and whitelist my IP address. To achieve that I used:

iptables -A INPUT -p tcp --dport 8080 -s 1.2.3.4 -j ACCEPT
iptables -A INPUT -p tcp --dport 8080 -j DROP

In this example IP is: 1.2.3.4
Port: 8080