I've built an application, wherein people are allowed to post anonymously without even signing up or registering. For security, as soon as the site loads up, an ajax request is made to https://ipapi.co/json, using this API, I get the public ipv4 of the user. I populate an input field with the data received. The input is hidden. This gets sent along the data user sends ie his/her post. This is then stored into the database. The ip is used for blocking spammers. However, I find it very easy to change the ip data from chrome developer tools. Anyone can. How can I overcome this? Is there any way a particular element cannot be accessed from chrome developer tools? Or it's hidden in the truest sense?
Please help.
Thanks in advance!