Clive Portman: code

Get visitor's IP address within a Craft CMS template without a plugin

Ideal for those instances when I just gave to work on a live site:

{% if craft.request.getIpAddress() == '255.255.255.255' %}
    // do your shizzle
{% endif %}

Hat tip to myself asking about this on Craft's Stack Exchange channel.