-
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 Marketing Cloud Genie — Building Real-time Relationships with Customers
Salesforce Marketing Cloud is a digital platform that combines multiple tools and solutions. It provides everything you need including email marketing and audience development. Salesforce stores data…
Future-Proof Your Business: Customized Salesforce Solutions for a Winning CRM Strategy
Organizations must change and adapt in order to stay ahead of the competition in today's quickly evolving digital landscape. A robust Customer Relationship Management (CRM)…
Popular Salesforce Videos
Introduction to Salesforce Nonprofit Cloud for Program Management
Each nonprofit’s mission and the program is unique, but with Salesforce’s highly configurable and customizable platform, you can manage your entire program from one central…
What is CPQ (in Salesforce)?
This videdo explains Configure Price Quote (CPQ) in Salesforce by dividing this topic into 4 basic points, which are: 1. What is the basic sales…
How To Use Trailhead To Become A Salesforce Developer
Trailhead is the fun way to learn Salesforce. In this session we'll show you how to leverage Trailhead to quickly and easily learn Salesforce and…
Popular Salesforce Infographics
What is a CRM System?
Customer relationship management (CRM) is a technology for managing all your company's relationships and interactions with customers and potential customers. The goal is simple: Improve…
9 Ways Salesforce Brings Companies and Customers Together
As the world’s #1 CRM, Salesforce brings companies and customers together. This is possible through Salesforce Customer 360. It’s an integrated, AI-powered customer relationship management…
Overview of Salesforce AppExchange Apps Market: Key Insights and Trends for 2024
The Salesforce AppExchange marketplace continues to expand, offering a diverse array of applications designed to enhance various business operations. Our 2024 analysis delves into the…