How can i hide the IP address from the results page ? I don't want other members to be able to see the ip address and I can't seem to find an answer to this.

P.S. i don't want to anonymize module

Help please

CommentFileSizeAuthor
#10 webform_hide_ip.zip1.76 KBsolideogloria
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

pietpomp’s picture

did you try swapping tokens, under WEBFORM -> E-mails {edit} -> E-mail template?
From %username to %profile[name] or %profile[profile_first_name]

Anonymous’s picture

I don't want to alter emails as i don't use it.

The IP Address i want to be removed from is /webform-results/table

deweweb’s picture

did someone find the solution?

deweweb’s picture

the solution for it is to create own module "ip_hide" with two files inside - first ip_hide.info
; $Id: $
name = ip_hide
description = Hide IP from webformresults module.
core = 7.x
package = ip_hide
configure = admin/config/ip_hide

; Information added by drupal.org packaging script on 2012-05-13
version = "7.x-0.1"
core = "7.x"
project = "ip_hide"
datestamp = "1336890411"

and second is ip_hide.module
<?php

//hook_webform_submission_presave
function ip_hide_webform_submission_presave($node, &$submission) {
$last_ip_number = explode(".",$submission->remote_addr);
$submission->remote_addr = '***.***.'.$last_ip_number[2].'.'.$last_ip_number[3];
}

And enable module in Modules section

quicksketch’s picture

Status: Active » Closed (duplicate)

The original poster specifically said he didn't want to truly anonymize the submissions in the database, which is what the solution in #4 provides. There's also http://drupal.org/project/webform_anonymous which does the same thing with more granularity.

I'm consolidating issues similar to this one into #1733782: Provide options for managing IP Addresses (delete entirely, hidden on results, etc.), where we can consider adding IP address handling as a global setting in Webform.

ericjgruber’s picture

Issue summary: View changes

I ran into this issue today. My fix: edit the View for Webform Submissions (Webform submissions).

In that View, under Fields, click on the IP Address field that is exposed, and then click the remove button.

Be sure to save your View to make the change, and then it'll be gone.

DanChadwick’s picture

To clarify, the view is in the 7.x-4.x branch.

suffering drupal’s picture

And how can the IP address be substituted by the Country name?
I have tried with all IP related modules like smart-ip, geo-ip, ip2country, iptocountry, ip2locale and all the other ip look-a-like modules, but no succes. I am sure it must be something simple but I have already lost a week on this.
In other words, how to substitute "Webform submissions: Remote address" for the country code in views?
"Smart IP: Country" shows the country of the current visitor, not the country of the visitor who submitted the webform.
Any help?

solideogloria’s picture

This option exists since the 6.1.x version.

All webforms

/admin/structure/webform/config/submissions > Submissions Behaviors > Disable the tracking of user IP addresses for all webforms

Per Webform

/admin/structure/webform/manage/MY_WEBFORM_ID/settings/submissions > Submissions Behaviors > Disable the tracking of user IP address

solideogloria’s picture

Version: 7.x-3.9 » 7.x-4.x-dev
Status: Closed (duplicate) » Fixed
FileSize
1.76 KB

I do also have a solution in D7. Here's a minimal example custom module for 7.x-4.x.

solideogloria’s picture

Priority: Major » Normal

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.