Use facebook only for 1 hour

It is possible to use site “facebook” only 1 hour a day ?
Time range From 19:30 to 22:30.

What is the configurations ?

Tanks

yes, you can make an address list (in firewall) called “facebook”, enter all it’s IP addresses there, then make a firewall rule that blocks these IP addresses, and specify firewall working time in the rule.

Tanks,
i use a DHCP on laboratory school and do not have a static ip :frowning:

It is possible with DHCP ?

I use a filter rule that has
chain = forward
content = facebook.com
action = drop
comment = blockfb

scheduler calls 2 scripts
Block times
ip firewall filter enable “blockfb”

Pass times
ip firewall filter disable “blockfb”

That works for everything on my network.

Did I do it wrong?

It doesn’t matter what address you use. My suggestion is to block facebook IP address (not yours)

Tanks

I create a address list :

LIST ADDRESS

0 bl-facebook 74.119.76.0/22
1 bl-facebook 69.63.184.0/21
2 bl-facebook 69.63.176.0/24
3 bl-facebook 69.63.176.0/21
4 bl-facebook 69.171.255.0/24
5 bl-facebook 69.171.240.0/20
6 bl-facebook 69.171.239.0/24
7 bl-facebook 69.171.224.0/20
8 bl-facebook 66.220.159.0/24
9 bl-facebook 66.220.152.0/21
10 bl-facebook 66.220.144.0/21

and
drop it in the filter roules with a range of time.


There is the possibility, if i insert in the time one day, to use facebook only 1 hour of the day ?

Question:There is the possibility, if i insert in the time one day, to use facebook only 1 hour of the day ?
Answer:yes,if you insert in the time one day,it is work only 1 hour of one day.

Tanks

and if want use 2 hour of one day what is the configuration ?

Tanks for your help
CropperCapture[11].jpg

Hello wallnas. Do you wish to allow for specific 2 hours (say from 2AM to 4AM) or any two hours (choice of user)? If any two hours, then unfortunately, you cannot do this with RouterOS. You can only set specific working time for the firewall rules.

“perspetolis” say:

Question:There is the possibility, if i insert in the time one day, to use facebook only 1 hour of the day ?
Answer:yes,if you insert in the time one day,it is work only 1 hour of one day.

With another configuration/parameter i can use facebook for 2/n hour ?

The limitation can be for hours at your choice of user not a specified range of hour (01 am to 10 am): this is possible ?

Tanks

I’m sorry to say, but Perseptolis is not correct. As you can see, in that rule you have to specify exact times of day (from-to)

Thanks.

There is another possibility to use facebook only 1/2 hour of a day ?

I’m trying to restrict an ip from using internet at day from 8:00 am to 7:59 pm and allow from 8:00 pm to 7:59 am. Is it possible?

I not solve the problem :confused:

Please watch below video how to allow facebook any one hour with mikrotik hotspot.

https://youtu.be/VX7FKKTg_CQ