-
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 5 years, 10 months ago by
Manjunatha.
-
This discussion was modified 5 years, 10 months ago by
Forcetalks.
-
This discussion was modified 5 years, 10 months ago by
Forcetalks.
-
This discussion was modified 5 years, 10 months ago by
Log In to reply.
Popular Salesforce Blogs
Digging Deeper Into Salesforce Environments!
As the Forcedotcom terminology goes, Environments and organizations are equivalent to one another. This article will be focusing on Salesforce Environments, their types, uses, characteristics,…
New Salesforce Digital 360 Features
Salesforce, the world's leading CRM company, unveiled new Digital 360 technologies to help businesses go digital faster and deliver the next generation of marketing, commerce,…
Mobile Salesforce Solution That is Perfect For You
Let us just take a quick tour down memory lane of how we have used desktop computers for surfing a website built with Flash and…
Popular Salesforce Videos
Salesforce Developer No Code and Code - Extended Version
Here you will find a showcase of new technologies, tools, product news, and tutorials from Salesforce experts. Learn to build, automate, and scale on the…
Salesforce Sales Engagement Mastery: Proven Strategies for Efficiency and Success
Salesforce stands as a cloud-based customer relationship management (CRM) software capable of revolutionizing sales procedures and enhancing the efficiency of internal sales representatives. This dynamic…
Salesforce Einstein Search
Salesforce Einstein Search makes your users more productive by bringing the power of Einstein and AI to Salesforce Search. Einstein Search is Personal, Natural, and…
Popular Salesforce Infographics
Enjoy the Salesforce Innovation Management infographic
Without innovation, a company will stay in one place. Without getting ideas from those closest to your product or service - customers, employees, and partners…
6 Steps to Take When Searching For a CRM Platform
One CRM platform may have excellent event tracking, which means you can learn what a specific visitor does on your website, from which pages they…
Benefits of Salesforce Commerce Cloud
As the online marketplace is continuously growing in the global economy, it's important to have a feature-loaded and scalable e-commerce platform. Salesforce commerce cloud is…