-
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
7 Best Enhancements Coming to Salesforce Field Users with Resco’s Winter Update ‘18
The air is getting colder and the countdown for the Holidays begins. That must mean one thing, it's the Winter Updates time! A decade ago,…
How to Get Public Link for Salesforce File
Documents/reports which are appended in the record are put away as Salesforce File. Salesforce File is utilized to share and work together on transferred records,…
Supercharge Support Agents with These Lesser-Known Salesforce Service Cloud Features
We are living in a time when customer experience matters the most for a business. A disappointed customer will take no longer a minute to…
Popular Salesforce Videos
Write Tableau CRM Data to Salesforce Objects
Use Tableau to blend Salesforce data from across the Customer 360 platform with your other business data for increased visibility and a deeper understanding of…
Redefining the Digital Landscape With Our Innovative Salesforce Solutions
Watch this video to learn how Grazitti has been empowering Salesforce users' marketing journey with their Salesforce capabilities and Salesforce-native and Lightning-ready custom solutions, that…
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…
Popular Salesforce Infographics
How to Handle Failed Salesforce AppExchange Security Review?
Common reasons for a ‘FAILED’ Salesforce AppExchange Security Review The most common reasons for failing a Salesforce AppExchange security review can vary, but they often…
Business Transformation With Salesforce AppExchange
Salesforce AppExchange acts as a comprehensive resource for Salesforce users, offering a vast collection of solutions tailored to various departments, industries, and business use cases.…
What is Salesforce CPQ or Configure, Price, Quote – [Infographic]
Enterprises are using various CPQ tools in order to enhance their business efficiency & revenue by engaging their sales reps in doing actual sales activities…