# Show or Hide your form based on Referrer

Referrer is the URL of the webpage from which the user came to your website.
Your website may have been visited from search results, via social-media posts
or from other blog posts.



The form can detect who these referrers are and decide whether to show itself or
not, based on the rules you set.



Please go to Settings > Targeting and click on the + Add rule button.
Select Referrers from the dropdown list.









In the above example, we added a rule under Hide for. The referral URL input can
be regex. Here, if they visited the website from Facebook or Yahoo search, then
the form will be hidden.



The same rule can be added under Show for as well.



Tip



You can use the templates option to list some of the common referrers. Don't
forget to publish your changes
[https://collect.chat/help/article/1065-publish-the-chatbot] before testing.



Note



This setting is only available for the form when it is used as Widget. It is not
applicable when used as Embed or Link.