Pe platforma Linux (Apache), folosește un fișier .htaccess în folderul pe care vrei să îl protejezi. Sintaxa modernă (Apache 2.4+):
Require ip 888.888.888.888
Înlocuiește 888.888.888.888 cu IP-ul permis; orice alt IP va fi blocat. (Pe versiuni mai vechi de Apache se folosea order deny,allow / deny from all / allow from IP.)