-
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, 8 months ago by
Manjunatha.
-
This discussion was modified 6 years, 7 months ago by
Forcetalks.
-
This discussion was modified 6 years, 7 months ago by
Forcetalks.
-
This discussion was modified 6 years, 8 months ago by
Log In to reply.
Popular Salesforce Blogs
The ABC's of Salesforce - All you Need to Know
When you’re new to Salesforce, it’s easy to get lost in the lingo. There’s just so much information to digest that it can be overwhelming…
Salesforce Integration with Vision API | The Ultimate Guide
Integrating Salesforce with Google Vision API requires the following credentials: Salesforce Credentials: You will need to have a Salesforce account with admin permissions to set…
How Salesforce Partner Portal Help Strengthen Partnerships?
Businesses in every niche and industry are worried about one of the most critical aspects—strengthening partner connections. But why? By building better connections, businesses can…
Popular Salesforce Videos
The 3 Most Common Challenges Associated With B2b Commerce Cloud Implementations
With growing technology businesses are adapting to the new changes. B2B commerce cloud is one of them. But to implement the B2B commerce cloud is…
Salesforce Lightning Training - Creating Hello World Lightning Component
Data Loader is a utility to perform bulk database operation. Recently Salesforce has changed the way data loaders need to be install. I explain end…
Fireside Chat with Arundhati Bhattacharya, CEO Salesforce India
Meet the new Chairperson and CEO of Salesforce India Arundhati Bhattacharya. Tasked with further leading our growth and expansion throughout the country, Arundhati will be…
Popular Salesforce Infographics
Buy vs. Build: Salesforce Shield: Event Monitoring
Today, businesses store their most confidential information in the cloud with applications such as Salesforce. This means dozens, hundreds, or even thousands of employees have…
Salesforce Data Migration Launch Plan Infographic
Discover the essential steps to successfully migrate your data to Salesforce with our comprehensive infographic. Our 10-step countdown will guide you through the process of…
Six Reasons Clients Love Salesforce Community Cloud
While there are way more than six reasons to love Salesforce Community Cloud, here are the top six reasons that keep coming up again and…