-
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, 6 months ago by
Manjunatha.
-
This discussion was modified 6 years, 6 months ago by
Forcetalks.
-
This discussion was modified 6 years, 6 months ago by
Forcetalks.
-
This discussion was modified 6 years, 6 months ago by
Log In to reply.
Popular Salesforce Blogs
DML Statements vs Database Methods in Salesforce
DML stands for Data Manipulation language and it is used to create and modify records in Salesforce. It provides a way to manage records by…
Salesforce Dynamic Forms: Overview, Benefits, Business Cases
On a user page layout in Salesforce might be placed a monolit block of fields which makes customization impossible. The task of Dynamic Forms is…
Salesforce ServiceNow Integration Guide
Table of contents: About Salesforce About ServiceNow Why integrate them? Common Salesforce ServiceNow integration use cases How to choose the best integration tool? How to…
Popular Salesforce Videos
Why Salesforce India is Primed for Growth
Amarendra Kumar, RVP of Alliances and Channels for India at Salesforce, says the region is poised for tremendous growth and opportunity over the next few…
The Rising Demand for Salesforce Experts | Salesforce Careers
With more than 500,000 organizations using Salesforce to drive key business results, the market is brimming with opportunities for Salesforce certified professionals. A quick job…
Revenue Sharing with Salesforce | Unlocking Profit Potential | Live Stream Highlights
This extract from our live webinar uncovered how this powerful platform can revolutionize your revenue generation and maximize your profits. Discover the untapped potential of…
Popular Salesforce Infographics
5 Tips for when your Salesforce User Adoption has gone stale
Salesforce adoption is a funny business! To put it plainly, user adoption on Salesforce is just enabling a user to use it as the in-house…
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 Solutions For Travel Agencies
Salesforce for Travel is more than just a CRM. It’s a comprehensive ecosystem designed to empower travel agencies of all sizes. Comprehensive solutions offered by…