# Working with doorways
# How to connect Keitaro to doorway?
There are several ways:
- With a link.
- With KClient PHP.
- With KClient JS.
- With a redirect through a Script or Iframe.
- Other solutions.
# Integration with a link
After creating a campaign press “Get URL” or “Integrate > URL”. Use the received URL for the link on the doorway.
# Integration doorway with KClient PHP
This is a hidden for users way of exchanging information with Keitaro. Doorway receives the necessary instructions and immediately executes them. The PHP support on the doorway side is necessary.
- After creating a campaign press the button “Integrate” (menu “Additional”).
- Choose KClient PHP.
- Install the code following the instruction.
Now you can control the doorway behavior directly in Keitaro. More about using theKClient PHP read on the page KClient PHP.
# Redirect through Script or Iframe
This method means installing a special script to the HTML code of your doorway. This method supports static websites (without PHP support).
- CLick the button “Integrate” (menu “Additional”);
- Choose “Script” or “Iframe”;
- Install the code according to the instruction.
Now you can use redirects in streams. See the page redirects compatibility table.
# Other solutions
You can use any other solution if you need. Here is the list of the solutions provided in Keitaro, which you can take from the page “Integrate”:
If you need to run a JS-script from the stream. For example, popup, popover, modal, message and others. Use the following solution:
- Connect the “Script” from the page “Integrate”;
- Use the action “Show text” in the streams. You can paste there any html or js-code.
# How to redirect only certain users from the website? (Solution on JS)
Use the connection method Redirect through script or iframe. Create streams to catch only the necessary users, using the filters.
If you want, you can use the action “Do nothing” at the stream that should leave users on the doorway.
# How to redirect only certain users from the doorway? (Server solution)
Use the connection method Integrating doorway through KClient PHP. Create streams to catch only the necessary users, using the filters.
If you want, you can use the action “Do nothing” at the stream that should leave visitors on the doorway.