J
J
Jeka2020-03-13 01:31:46
Traffic analysis
Jeka, 2020-03-13 01:31:46

How to restrict access to the site by type of traffic?

It is necessary to restrict access to the site by traffic type Organic, Direct, Referral, Email.

Example:

- a user who got to the site through search engines (Organic traffic) should receive a 200 server response
- a user who got to the site by direct access or followed a link or came from an email should receive a 403 or 404 response.

How can I adjust server responses for traffic types?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey Karbivnichy, 2020-03-13
@hottabxp

Look in the "referer" heading.

S
Saboteur, 2020-03-13
@saboteur_kiev

parse the header received from the user ( https://ru.wikipedia.org/wiki/HTTP_referer)
Read about https://ru.wikipedia.org/wiki/UTM-%D0%BC%D0%B5%D1%...
But there is no 100% reliability here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question