-
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, 3 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
5 Benefits of Salesforce for Insurance
When it comes to insurance CRM, Salesforce enjoys massive popularity, and deservedly so. Salesforce goes beyond the typical CRM functionalities and offers out-of-the-box capabilities. It…
Everything You Need To Know About Salesforce Admin Certification Exam
Salesforce is a game-changer, ever-evolving, always innovating, #1 CRM platform globally. It is a huge company growing leap and bounds every year. It welcomes individuals…
Power of Search in Salesforce
Power of Search Salesforce Search: We use the built-in search function of the Salesforce platform to search for any record or file. It gives us…
Popular Salesforce Videos
Apex Variables & Datatypes | Apex Basics | Salesforce Development Tutorials
In this video variables, datatypes, literals and identifiers in Apex language have been explained in detail . This video contains only the primitive datatypes in…
Salesforce Quickbooks Integration | eShopSync for Quickbooks
Product Sync? Invoice Sync? And more? eShopSync for Quickbooks brings out the best-class solution for Salesforce Quickbooks Integration. Click on the link to know more:…
How to Get A Part Time Salesforce Job
In this video, Brad discusses different techniques to convince a potential employer to offer you a part-time Salesforce position. This job option allows for additional…
Popular Salesforce Infographics
Customer Service: The Forgotten Marketing Channel
The key to good customer service is building good relationships with your customers. Thanking the customer and promoting a positive, helpful and friendly environment will…
5 Salesforce User Adoption Quick Wins to Focus on Now
Salesforce user adoption is a funny business! To put it plainly, user adoption on Salesforce is just enabling a user to use it as the…
The Salesforce Lightning Platform for Employee Engagement: Key Findings
Salesforce provides a system of engagement across the entire employee lifecycle that enables organizations to connect multiple back-end systems of record with one system of…