Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It would be simpler to handle it in the application.

if ($ip == 'XXX.XXX.XXX.XXX') { require 'poison.html'; exit; }



Setting up a new site is trivial to do and allows you to mess around with it without modifying your main site... which may not be so simple as your example if it's based on a CMS or other framework.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: