-
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, 10 months ago by Manjunatha.
- This discussion was modified 4 years, 10 months ago by Forcetalks.
- This discussion was modified 4 years, 10 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Approval Process on Opportunity Product in Salesforce
An Approval Process is an automated process an organization can use to approve records in Salesforce. It specifies the steps which are necessary for a…
CPQ Implementation in Salesforce: Challenges and Best Practices
A CPQ software solution can alleviate many, if not all, of the pain points associated with accurate sales quotes. By automatically fetching product details, calculating…
Imported for Person Accounts in Salesforce - All You Need To Know
Required Editions Information Import Wizard accessible in both Salesforce Classic and Lightning Experience. Information Import Wizard accessible all told Editions other than Database.com. Individual records…
Popular Salesforce Videos
Create Surveys in Salesforce | Salesforce Tutorial
Learn how to create surveys in Salesforce. In this video, the following points will be covered - 1. Build A Survey Learn how to build…
The World of Salesforce Einstein
Salesforce Einstein is artificial intelligence (AI) technology that has been developed for the Salesforce Customer Success Platform. ... Upgrades include Einstein Vision, which brings image…
How to Download Backup Files from Salesforce Using UIPath Robots
How to download backup files from Salesforce using UiPath robots. How to get the latest file from the folder: Directory.GetFiles(“YOUR FOLDER”).OrderByDescending(Function(d) New FileInfo(d).CreationTime).First The link…
Popular Salesforce Infographics
What You’ll Get with the Salesforce MVP Infographic
We scanned the profiles of Salesforce MVPs, both past and present, searched high, low, near and far to provide insights into what it specifically takes…
How To Amplify Your Business With Salesforce
Business process and technology are an integral part of each other; when they are integrated, they can form a symbiotic relationship with each other. Today…
Salesforce Field Service: Power Up Your Field Operations
Salesforce Field Service, commonly known as Field Service Lightning (FSL), is the extension of Service Cloud that provides a unified view of workforce management. In…