# BEGIN WordPress RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase / # 1. Proteger wp-login.php requiriendo la llave secreta RewriteCond %{REQUEST_URI} ^(.*)?wp-login\.php(.*)$ [NC] RewriteCond %{QUERY_STRING} !^llave=acceso-wp$ RewriteRule .* - [F,L] # 2. Bloquear intentos de spam en comentarios (xmlrpc y wp-comments-post) RewriteCond %{REQUEST_METHOD} POST RewriteCond %{REQUEST_URI} /wp-comments-post\.php$ [NC] RewriteCond %{HTTP_REFERER} !^https://liceoausubel\.edu\.mx [NC] RewriteRule .* - [F,L] RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # END WordPress # 3. Prevenir la ejecución de scripts PHP en la carpeta uploads Order Deny,Allow Deny from all # 4. Proteger archivos de configuración y del sistema Order Allow,Deny Deny from all Order Allow,Deny Deny from all # 5. Desactivar el listado de directorios Options -Indexes
Fatal error: Uncaught Error: Call to undefined function wp() in /var/www/vhosts/liceoausubel.edu.mx/httpdocs/wp-blog-header.php:16 Stack trace: #0 /var/www/vhosts/liceoausubel.edu.mx/httpdocs/index.php(17): require() #1 {main} thrown in /var/www/vhosts/liceoausubel.edu.mx/httpdocs/wp-blog-header.php on line 16