Notifications
Clear all

Real IP not showing in comments + Front end moderation blacklist bans everyone.

8 Posts
3 Users
0 Reactions
2,626 Views
(@amadchatter)
Member Customer
Joined: 7 years ago
Posts: 6
Topic starter  

I use wpDiscuz and front end moderation addon.
Real IP's are not recorded in comments, so I am unable to ban a users IP.

I am using Bluehost Wordpress Managed Hosting which is a vps.
How to get real ip showing when using wpDiscuz?


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6225
 

Hi amadchatter,

I'm really sorry, but you can't see IP on the frontend. For now, you can only see the commenters' IP on Dashboard > Comments admin page.

IP 001

We'll take into consideration to display users IP on the frontend for future releases.


   
ReplyQuote
(@amadchatter)
Member Customer
Joined: 7 years ago
Posts: 6
Topic starter  

My problem like your picture shows, is all IP's in the dashboard are the same.
So you can't actually block anyone by ip.


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4217
 
Posted by: amadchatter

My problem like your picture shows, is all IP's in the dashboard are the same.
So you can't actually block anyone by ip.

Then you should find why they are all the same. Just find that problem, solve it and then you'll be able to block users. The IP is being registered by WordPress not by wpDiscuz. wpDiscuz doesn't have any relation to this issue. The screenshot is a test website screenshot so all test were done by one user from one IP. But this is not your case.


   
ReplyQuote
(@amadchatter)
Member Customer
Joined: 7 years ago
Posts: 6
Topic starter  
Posted by: Tom
Posted by: amadchatter

My problem like your picture shows, is all IP's in the dashboard are the same.
So you can't actually block anyone by ip.

Then you should find why they are all the same. Just find that problem, solve it and then you'll be able to block users. The IP is being registered by WordPress not by wpDiscuz. wpDiscuz doesn't have any relation to this issue. The screenshot is a test website screenshot so all test were done by one user from one IP. But this is not your case.

After further investigation, if I post a comment from the wordpress dashboard the IP shows correctly.
If I post a comment from the blog page, that uses standard wordpress comments, the IP shows correctly.
Only when I post a comment from wpDiscuz's form, the IP not show the real IP of the comment, and instead shows the IP of the website itself.

Maybe someone at wpDiscuz can look into this?


   
ReplyQuote
(@amadchatter)
Member Customer
Joined: 7 years ago
Posts: 6
Topic starter  

"The screenshot is a test website screenshot so all test were done by one user from one IP"
I'm assuming this kind of bug would be easy to overlook in that case.


   
ReplyQuote
 Tom
(@tomson)
Famed Member Admin
Joined: 10 years ago
Posts: 4217
 

Hi @amadchatter,

Please do some change in code.

Open /wpdiscuz/class.WpdiscuzCore.php file, find this line (there are two):

'comment_author_IP' => $author_ip,

Change to this:

//'comment_author_IP' => $author_ip,

We'll ad this change in next version so you can update without any issue.


   
ReplyQuote
(@amadchatter)
Member Customer
Joined: 7 years ago
Posts: 6
Topic starter  

Thank you, IP's are showing now. 🙂


   
ReplyQuote
Share:
Scroll to top