-
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
What is Salesforce Agentforce? A Guide to Features, Benefits and Technology
Driving Customer Success with Innovation and Excellence at AwsQuality Agentforce Is An AI Agent Builder Powered By Salesforce, Catering To Companies Wanting Innovation In Support…
Custom Objects and Standard Objects in Salesforce - The Understanding
As evidenced by its predominance across nearly every industry able to leverage CRM or automation tools, the greatest value proposition Salesforce has to offer is…
Salesforce Spring ’20 Release Notes - Top Features
Salesforce Spring '20 Release have been made universally accessible on February 17, 2020. The Spring '20 discharge conveys extended advancements over the whole Customer 360…
Popular Salesforce Videos
Why To Sell Your SAAS Application On Salesforce AppExchange ?
From unparalleled market reach to seamless integration and trusted security, explore the benefits that await SAAS entrepreneurs on Salesforce AppExchange. Watch our latest webinar to…
Creation Of An Object In Salesforce | Salesforce Custom Objects
In this video, you will learn how to create a custom object in Salesforce, along with verification of the custom object in Salesforce. The following…
Salesforce Tutorial - Creating Custom Object
Many times, New Salesforce Developers don’t understand from where to start it. In this video, I have shown the way exactly to create a Custom…
Popular Salesforce Infographics
Salesforce Summer'20 Release - Infographic
Salesforce, the world’s # 1 CRM is always on the lookout to connect to its customers, partners, employees with innovative features all around the world,…
Differences Between Salesforce Enterprise Edition and Salesforce Professional Edition
Congratulations! You’ve decided to implement Salesforce. We understand that the process can be a bit overwhelming. As Salesforce Consultants one of the questions that we…
Einstein in Action – Unleash the Power of AI in Salesforce
Drowning in data but thirsty for insights? Salesforce Einstein can be your life raft. This infographic dives into the world of AI for CRM, exploring…