Loading

Malware Scanner

  1. <?php
  2.  
  3. if($_GET['acao'] == "eliminar") {
  4.     unlink($_GET['ficheiro']);
  5.     echo "<p color=\"red\">Ficheiro ". $_GET['ficheiro'] ." eliminado com sucesso!</p>";

WordPress wp-login.php Au

  1. # BEGIN WEBTUGA SECURITY
  2.  
  3. ErrorDocument 401 "Unauthorized Access"
  4. ErrorDocument 403 "Forbidden"
  5. <FilesMatch "wp-login.php">

Redireccionar http para h

  1. # Redireccionar para HTTPS
  2. RewriteCond %{HTTPS} off
  3. RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

.htaccess mod_deflate

  1. <IfModule mod_deflate.c>
  2.     SetOutputFilter DEFLATE
  3.     <IfModule mod_setenvif.c>
  4.         # Netscape 4.x has some problems...
  5.         BrowserMatch ^Mozilla/4 gzip-only-text/html

Redirect .htaccess subdir

  1. RewriteEngine On
  2. RewriteRule ^$ /newsite [L]

WordPress Default .htacce

  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. RewriteRule ^index\.php$ - [L]

Hello World PHP

  1. <?php
  2. echo "Hello WebTuga World!";
  3. ?>