Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
Blocking a directory of a website via DNS
Hello, so I have been trying to block only a directory of a website for a few days now. I want to edit it and make it look like the site is telling the user you cannot view this page on this network; like DNS spoofing, but for a directory only.
I’m not very experienced with Nginx or Apache (in Ubuntu) so I’m not quite sure what my options are.
For an example, I want to block example.com/content/iwantthisblocked but I want everything else to be unblocked or “pass through.”
Can anyone help me with this? It would be very helpful as I do not want to spend the money on an expensive web filter.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×