B
B
biglebowski05732019-10-04 01:08:59
linux
biglebowski0573, 2019-10-04 01:08:59

How to implement a redirect for WiFi network users?

Help a student. They gave me an assignment.
In short: WiFi network in which Windows computers and laptops and my laptop with Kali Linux. The network interface of this WiFi network is wlan0.
How to make it so that everyone who is on this network, when requesting certain sites through the browser, is redirected to a page with a warning "The site you are trying to go to is blocked!"?
I have apache2 running on my Kali Linux laptop which already has this warning page (IP is 192.168.1.8).
For example, let's take facebook.com as the site from which the user should be redirected to a warning page.
Condition: all actions can be performed only on my laptop with Kali Linux. What options are there to implement this?
-------------------------------------------------- ------
As I understand it, it is necessary to somehow intercept the requested domain name. And if it is facebook.com, then redirect immediately to 192.168.1.8

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question