-
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, 8 months ago by
Forcetalks.
-
This discussion was modified 6 years, 8 months ago by
Forcetalks.
-
This discussion was modified 6 years, 8 months ago by
Log In to reply.
Popular Salesforce Blogs
3 Reasons Salesforce can Help Nonprofits Expand Their Reach
During the epidemic, technology served as a link amongst people. It was a lifeline for Nonprofits and consumers, bridging the gap between them. And, apparently,…
7 Reasons Why Your Business Needs to Know Salesforce
The main use of Salesforce is to create customer relationship management (CRM) software that facilitates break down the technology between divisions to give firms a…
Salesforce Interview Questions – Part 1
1. Give me an example of one admin part and one development part which is used in the current organisation. 2. What is the difference between…
Popular Salesforce Videos
Salesforce Winter '22 Innovation Spotlight: Sales, Service, & Financial Services
Improve employee performance and grow your business with the newest features from Sales, Service, and Financial Services Cloud! Watch this video and get to know…
How Do All Salesforce Products Come Together
The products of Salesforce run completely in the cloud. Therefore, the companies don’t need to fret about costly maintenance and setup charges. Additionally, cloud technology…
Validation Rules in Salesforce | Video Tutorial Guide
In this video, Srinu Namani briefs about Validation Rules in Salesforce. Validation rules are an important part of keeping your data clean and organized, and…
Popular Salesforce Infographics
How is Salesforce Benefiting Businesses?
Salesforce is one of the top cloud-based CRM software for service, marketing, and sales. It helps in creating a more meaningful relationship with the customers.…
DreamOle Event - Salesforce
A group of volunteers within the Spanish Salesforce Trailblazer Community. Their Mission is to put together a Community Conference that would help the Spanish Community…
Top Benefits of Integrating Salesforce and NetSuite
Salesforce, on the one hand, is the world’s number cloud-based CRM. NetSuite, on the other hand, is one of the best ERP systems. And when…