Can I turn off the Ip address?

Helpdesk for my helpdesk software

Moderator: mkoch227

Post Reply
mystasia
Posts: 2
Joined: Tue Mar 01, 2022 1:32 pm

Can I turn off the Ip address?

Post by mystasia »

Hello
Is it possible to set in the HelpDesk software that the IP address of the "customer" is not visible for employees?
Image
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can I turn off the Ip address?

Post by Klemen »

There is no built-in way of doing that.

However, you can:
1. download and install the free Notepad++
2. open file admin/admin_ticket.php in Notepad++
4. find

Code: Select all

// Format IP for lookup
5. just below that line add

Code: Select all

$ticket['ip'] = '';
6. save, upload and test
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
mystasia
Posts: 2
Joined: Tue Mar 01, 2022 1:32 pm

Re: Can I turn off the Ip address?

Post by mystasia »

Hello thank you for your answer.
Did what you wrote, however, the IP address is still displayed unfortunately?
Klemen
Site Admin
Posts: 10142
Joined: Fri Feb 11, 2005 4:04 pm

Re: Can I turn off the Ip address?

Post by Klemen »

As, sorry, didn't test it before posting.

You will also need to do this:

1. open file /admin/admin_ticket.php in Notepad++
2. find this line:

Code: Select all

<span class="title"><?php echo $hesklang['ip']; ?>:</span>
3. two lines ABOVE that line, find

Code: Select all

?>
and change it to

Code: Select all

/* ?>
4. a few lines BELOW line in #2, find line

Code: Select all

<li class="separator"></li>
5. below this line, find

Code: Select all

<?php
and change it to

Code: Select all

<?php */
It should now look something like:

Code: Select all

                            /* ?>
                            <li class="noclose">
                                <span class="title"><?php echo $hesklang['ip']; ?>:</span>
                                <span class="value">
                                    <?php
                                    if ($ticket['ip'] == '' || $ticket['ip'] == 'Unknown' || $ticket['ip'] == $hesklang['unknown']) {
                                        echo $hesklang['unknown'];
                                    } else {
                                    ?>
                                        <a href="../ip_whois.php?ip=<?php echo urlencode($ticket['ip']); ?>"><?php echo $ticket['ip']; ?></a>
                                    <?php } ?>
                                </span>
                            </li>
                            <li class="separator"></li>
                            <?php */
Save, upload a test.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Post Reply