-
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 4 years, 9 months ago by Manjunatha.
- This discussion was modified 4 years, 9 months ago by Forcetalks.
- This discussion was modified 4 years, 9 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Best Salesforce Service Cloud Implementation Strategies
Salesforce Service Cloud is a robust platform of platforms, apps, and workflows that may assist you in serving your customers. Support Cloud enables your company…
Top Salesforce Features for Developers to Try Out in 2022
With Spring ‘22 release, there’s a lot that’s new for Salesforce developers that they can look forward to. The release has come up with some…
6 Cool Must-Know Features of the Salesforce Platform
What’s the greatest challenge faced by professionals who work with large volumes of sales and support data on a regular basis? In a word: data…
Popular Salesforce Videos
Salesforce For Non Programmers | Salesforce For Non Technicals
You can learn Salesforce without any programming language. You can plan Salesforce Administrator Certification which requires no coding skills. Watch this video to learn how.
What's Up with What'sApp? | Explained by Salesforce
With over 2 billion users, WhatsApp is the world’s most popular messaging app. WhatsApp channels are supported by Digital Engagement for Service Cloud. You can…
Guided Selling with Salesforce CPQ
Do you know how to set up guided selling in Salesforce CPQ? In this demo video, we'll show you three easy steps to set up…
Popular Salesforce Infographics
New Pardot Features: What was delivered in Summer ’18
New Pardot features, summer '18. Pardot has treated us to many enhancements across the core tool and related products. This infographic gives you an overview…
Unlock Agile and Efficient Salesforce Testing With AI-Driven Tools
Like every industry, the world of software testing and quality assurance has also gone under massive development with the emergence of AI technology. Developers and…
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…