Hi,
Sure, the wpDiscuz logs the IP addresses as well.
Hi @gvectorssupport, thanks. May I ask where is wpDiscuz storing the logs?
Hi,
The data is stored in the following database table: wp_wc_users_voted.
Please note that wp_ is just a prefix.
However, IP addresses in this table are stored in hashed form.
The logic is as follows:
- The WordPress comment table stores the author’s IP address and user_id.
- wpDiscuz checks whether the current user is logged in. A user is not allowed to vote for their own comment, so the
user_id must not match the user_id of the comment author.
In the case of guest users, wpDiscuz checks the IP address to ensure it doesn’t match the IP address of the comment author.
- If the checks in step 2 pass, the vote is added. Depending on whether the user is logged in, either the hashed
user_id or the hashed IP address is stored.
@gvectorssupport thank you very much for the detailed explanation!