-
How to get the IP address of the user's system in apex when they try to create a case in Salesforce?
Hi, I am facing an issue with cases in Salesforce, recently they were a lot of spam cases that have been created from web to case.
and this is not the first time it happened earlier also. So we have created validation rule on case to avoid spamming based on the subject, body, sender, etc but it's just a temporary solution because every time we receive a different kind of data, as soon as we get to know about spamming we are checking the values and adding those values in the validation rules to avoid further case creation.But now we have come up with the below solution.
Creating an IP address field on case object, on the creation of case in salesforce we are saving the IP address of the system which we received the data from. so our motto is whenever more cases are created from the same IP address (10+ cases within 24 hours from the same IP address) then we are going to block that IP address temporarily. So I think by implementing this we can prevent spam cases creation in salesforce.
Question is:
How to get the IP address of the user's system in apex when they try to create a case?
And please do let me know if you have a better solution.
-
This discussion was modified 6 years, 7 months ago by
Manjunatha.
-
This discussion was modified 6 years, 6 months ago by
Forcetalks.
-
This discussion was modified 6 years, 6 months ago by
Forcetalks.
-
This discussion was modified 6 years, 7 months ago by
Log In to reply.
Popular Salesforce Blogs
Why Choosing the Right Salesforce Development Company Defines Your CRM Success
In today’s digital ecosystem, customer experience is no longer optional; it is the core driver of business growth. Whether you’re a startup scaling operations or…
Guide to Install an App from AppExchange
Thank you for your interest in knowing how to install apps from AppExchange for Salesforce. Use my blog as a guide, it will help you…
Harnessing the Power of Salesforce Health Cloud API: Integration Tips and Tricks
In today's fast-paced healthcare environment, leveraging technology to streamline processes and improve patient care is crucial. Salesforce Health Cloud, with its powerful API capabilities, offers…
Popular Salesforce Videos
Google Lead Form Extension To Salesforce | Salesforce Tutorial
Google Lead Form extension to Salesforce. This tutorial will cover the following points - 1. Introduction Learn how to integrate leads from Google lead form…
Salesforce Customer 360 Audiences Enhancements
Salesforce Customer 360 is a tool that allows companies to connect Salesforce apps and create a unified customer ID to build a single view of…
Lesser Known VSCode Tips for Salesforce Developers
More Code, Less Work. Whether you are a beginner or an advanced developer, smart tips, and sharp tools can significantly improve your productivity. There are…
Popular Salesforce Infographics
How to Leverage A.I. Without Losing Your Humanity?
Artificial intelligence, or AI, is technology that learns, reasons, and self-corrects, and it’s being used by businesses to improve the customer journey. Automation, machine learning,…
Salesforce Dreamforce: A History of Innovation
Salesforce is anything but your average technology company. From its 1-1-1 philanthropic model to the scrappy startup culture, Salesforce defies traditional logic for how a…
Top Benefits of Integrating Salesforce and NetSuite
Salesforce, on the one hand, is the world’s number cloud-based CRM. NetSuite, on the other hand, is one of the best ERP systems. And when…