-
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, 1 month ago by
Manjunatha.
-
This discussion was modified 6 years, 1 month ago by
Forcetalks.
-
This discussion was modified 6 years, 1 month ago by
Forcetalks.
-
This discussion was modified 6 years, 1 month ago by
Log In to reply.
Popular Salesforce Blogs
Salesforce Implementation Strategy in 2022 - An A to Z Guide
A go-to-market plan is critical for a company's growth amid difficult times. With Salesforce being such an important part of the strategy, it's critical to…
Common Salesforce User Engagement Issues In The Workplace
The success of the Salesforce implementation depends on how efficiently its end users are using the platform. Any Salesforce user engagement issues can cause serious…
Popular Salesforce Videos
When to use which Sandbox? Salesforce Interview Questions and Answers
Watch this video by CRS Info Solutions to when to use which Sandbox. Salesforce sandboxes are copies of your Production environment. A Sandbox contains all the…
Salesforce Training Videos - Discussion on Admin Concepts
A Salesforce Admin is a business leader, deeply knowledgeable about how their company operates, intertwined in making all departments successful through process automations, and thus,…
How to Log an Admin Assist Support Case in Help and Training in Salesforce Help
Do you need to log a case with Admin Assist Salesforce Support but aren't sure how to go about it? Do you need help filling…
Popular Salesforce Infographics
Do the Work: 8 Steps to Sales Call Preparation [CHECKLIST]
There is no shortage of sales tips and tricks to implement out there, we've certainly published our fair share, but at the end of the…
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…
Salesforce Data Migration: Best Practices to Ensure a Smooth Transition
Migrating data to Salesforce can be a daunting task, but it doesn't have to be. By following a few best practices, you can ensure a…