Jump to content

Help with banning email or domain!


mrrodger

Recommended Posts

You could have them in a text file like so:
[code]
203.188.122.186
222.172.213.221
123.123.154.224
[/code]

Then at the start of your script:
[code]
<?php
$ip = @ $_SERVER['REMOTE_ADDR'];
$ips = file('ips.txt');
if( in_array($ip,$ips) ){die('You are not allowed to post.');}
[/code]

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.