Skip to content

Instantly share code, notes, and snippets.

@webtechriser
Created February 11, 2020 08:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webtechriser/1feb8c02ed1652f27460a64d6672efad to your computer and use it in GitHub Desktop.
Save webtechriser/1feb8c02ed1652f27460a64d6672efad to your computer and use it in GitHub Desktop.
How to use public IP function in PHP
<?php if( clear_from_blocked_ips() ) : ?>
<script>
alert('This content is not blocked for your IP address');
</script>
<?php endif; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment