Answer the question
In order to leave comments, you need to log in
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
Am I the only one who sees that the insert request is commented out? Only an update is performed.
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
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.
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.
I want to block access to VK Video
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question