Q
Q
Question342022-03-17 13:07:45
PHP
Question34, 2022-03-17 13:07:45

How to block a specific page of a site?

Good afternoon!
Is it possible to block a specific page of a website? I want to close access to VK Video, but for VKontakte to work. I tried through a router (TP-Link), but only the entire site can be blocked there.
Thanks in advance

Answer the question

In order to leave comments, you need to log in

6 answer(s)
R
Ruslan, 2016-06-08
@thekot24

Am I the only one who sees that the insert request is commented out? Only an update is performed.

T
ThunderCat, 2016-06-07
@ThunderCat

Ooh, such a porridge to cook, my not to watch! (c) Jar Jar Binks.
1) Porridge in kind, but oh well, this is half the trouble.
2) Use prepared statements and PDO.
3) Form requests into variables, only then pass the request for execution, so at least you can debug what gets into the request there.
4) If it's not clear (like here) - put print_r () through the line, and so on for everything that moves.
5) Profit

A
Andrey Smirnov, 2022-03-18
@Question34

I once did something similar in Squid - there you can block or replace any line from the request, for example, instead of advertising banners, issue a transparent gif 1x1 pixel.
Only then they told me that I blocked too much high-quality porn, and I didn’t block some perverted ones - I had to remove the blocking. But now everything runs on https and it will not work to transparently turn traffic to squid, and it worked crookedly before, now I use wpad for this in tandem with squid.

D
dollar, 2022-03-17
@dollar

Who do you want to close? To your children, or colleagues, or clients? The methods will be different.
Usually the easiest thing is to simply ask not to come in. As a reason, explain the one for which you want to block. If you are right, then people will listen to you anyway, and will not come in.

A
AlexVWill, 2022-03-17
@AlexVWill

I want to block access to VK Video

If VK Video sits on a separate domain, for example video.vk.ru, then this can be done at the DNS server level.

D
Drno, 2022-03-17
@Drno

Not on TPlink

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question