-
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, 2 months ago by Manjunatha.
- This discussion was modified 4 years, 2 months ago by Forcetalks.
- This discussion was modified 4 years, 2 months ago by Forcetalks.
Log In to reply.
Popular Salesforce Blogs
Get Salesforce Campaign Members Directly In MailChimp
For Email Marketing you have to add Salesforce Contacts directly into the MailChimp. So follow the steps to configure MailChimp for Salesforce and get the…
How to Avoid the Biggest Security Risks to Your Salesforce Org?
With companies leveraging platforms like Salesforce to manage their customer relationships, sales data, and marketing efforts, the security of such platforms is often overlooked as…
MuleSoft Composer for Salesforce
MuleSoft Composer for Salesforce is the fastest and easiest way for non-developers to connect third-party applications and data to Salesforce using clicks, not code. No more…
Popular Salesforce Videos
How To Use RingCentral App In Salesforce | Salesforce Service Cloud
Learn how to use RingCentral App in Salesforce. This video will cover the following points - 1. Advantages Take a look at the advantages of…
Simplified Non-Functional Testing for Salesforce Developers
Testing is indispensable to measure, optimize performance, and improve user experience. Watch this video to see how you can measure performance across physical mobile devices…
Build Multi-Column Screens in Flow Builder - Spring'21 feature for the Salesforce Screen Flows
Build Multi-Column Screens in Flow Builder (Pilot) You can divide each flow screen into multiple sections and columns to create a visually appealing and effective…
Popular Salesforce Infographics
Top Salesforce Acquisitions Of All Time and In 2020
Salesforce has been on a shopping spree over the last few years. We all read quite frequently about Salesforce acquisitions. They are quick enough to…
Salesforce Einstein GPT For Technical Expertise
Did you know how Salesforce Einstein GPT provides technical capabilities? Explore the potential of Einstein GPT and how it could be beneficial for technical endeavors.…
Things you need to know about Salesforce Commerce Cloud
Salesforce Commerce Cloud a.k.a. Demandware is a highly customized, multi-tenant, and cloud-based Software as a Service (SaaS) eCommerce solution. It offers a wide range of…