Hello, I would like to limit users to only be able to register one account from the same IP address.

Can this be done with the Rules module?

I am using Drupal 7 and the IP address manager module to record IP addresses.

Comments

Vaibhavi Soni’s picture

You need to follow below steps.

1) Install User Ip Log module and rules module.
2) Enable PHP Filter module:

<?php
        $ip_address = ip_address();
        $count = db_query("SELECT count(uid) FROM {uiplog} WHERE ip = :ip", array(':ip' => $ip_address))->fetchField();
        ?>

3) Create a rule, use your custom php code to check the users Ip log and block theme with your custom conditions.

Note that your conditions should be date-realted because Internet Provider Services, assign this IPs to others too.

Hope this helps.

Thanks!

TR’s picture

Status: Active » Fixed

This question was answered by #1.

TR’s picture

Status: Fixed » Closed (fixed)