Skip to content
Code and Bytes

Code and Bytes

Permitir direcciones ip desde .htaccess

Posted on 18 April, 20189 April, 2020 By jaime

Editar el archivo:

/etc/apache2/apache2.conf

Agregar la línea:

<Directory /var/www/html/>
 AllowOverride All
 </Directory>

Luego crear el archivo .htaccess:

<RequireAny>
 Require ip 190.248.159.226
 Require ip 190.248.159.227
 </RequireAny>

Se pueden extraer las ip por paises en la página https://www.ip2location.com/free/visitor-blocker
Linux

Post navigation

Previous post
Next post

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Buscar

Categorias

  • AI
  • Asterisk
  • Bases de datos
  • DevOps
  • Git
  • HTML
  • Laravel
  • Linux
  • MCP Server
  • Mikrotik
  • MySQL
  • n8n
  • Personal
  • PHP
  • Python
  • Software recomendado
  • Tips
  • VSCode
  • vTiger
  • Windows
  • Wordpress
©2026 Code and Bytes | WordPress Theme by SuperbThemes