Skip to content

Instantly share code, notes, and snippets.

@TehPeGaSuS
Last active January 26, 2026 16:09
Show Gist options
  • Select an option

  • Save TehPeGaSuS/b80e664f0354d6e12996a2bb88eaf946 to your computer and use it in GitHub Desktop.

Select an option

Save TehPeGaSuS/b80e664f0354d6e12996a2bb88eaf946 to your computer and use it in GitHub Desktop.
PTirc Domain Confirmation for domain related vhosts

Ficheiro de verificação de domínio PTirc

🇵🇹 Português

Instruções de Verificação de Domínio

Para confirmar a propriedade do seu domínio para a rede PTirc, siga estes passos:

  1. Baixe o arquivo ptirc_confirm.html deste repositório
  2. Faça upload do arquivo para a raiz do seu domínio (não para uma subpasta)
  3. Acesse o arquivo através do seu navegador para verificar

📍 Localização CORRETA:

https://SEU-DOMINIO.tld/ptirc_confirm.html

📍 Localização INCORRETA:

https://SEU-DOMINIO.tld/pasta/ptirc_confirm.html

⚠️ Importante:

  • O arquivo DEVE estar diretamente na raiz do domínio
  • Subpastas não são aceitas para verificação
  • O sistema automaticamente detecta e remove "www." do domínio
  • Não edite o código do arquivo

🚀 Teste Rápido:

Após upload, acesse https://seudominio.com/ptirc_confirm.html

🔧 Como Fazer Upload

Hospedagem Normal:

  • Use FTP, SFTP ou o painel de controle do seu hosting
  • Coloque o arquivo na pasta principal (geralmente public_html, htdocs ou /)

GitHub Pages:

  1. Crie um repositório com o nome do seu domínio
  2. Habilite GitHub Pages nas configurações
  3. Coloque ptirc_confirm.html na raiz do repositório
  4. Configure seu domínio personalizado nas configurações do GitHub Pages

Vercel/Netlify:

  • Faça deploy do arquivo como um projeto estático
  • Certifique-se de que está servindo na raiz do domínio

🎯 Propósito

Este arquivo verifica que você controla o domínio onde ele está hospedado. A rede PTirc usará esta verificação para associar serviços ao seu domínio.

❓ Problemas Comuns

P: O domínio aparece errado
R: Certifique-se de acessar pelo domínio correto. O arquivo detecta automaticamente de onde está sendo servido.

P: A página não carrega
R: Verifique se o arquivo está na raiz e se o nome está correto (ptirc_confirm.html, não ptirc_confirm.html.txt)

✅ O que você verá

  • Seu domínio em um design profissional
  • Mensagens em português e inglês
  • Um selo de verificação verde

PTirc Domain Verification File

🇬🇧 English

Domain Verification Instructions

To confirm ownership of your domain for the PTirc network, follow these steps:

  1. Download the file ptirc_confirm.html from this repository
  2. Upload the file to your domain's root level (not to a subfolder)
  3. Access the file through your browser to verify

📍 CORRECT Location:

https://YOUR-DOMAIN.tld/ptirc_confirm.html

📍 INCORRECT Location:

https://YOUR-DOMAIN.tld/folder/ptirc_confirm.html

⚠️ Important:

  • The file MUST be directly at the root of the domain
  • Subfolders are not accepted for verification
  • The system automatically detects and removes "www." from the domain
  • Do not edit the file's code

🚀 Quick Test:

After uploading, visit https://yourdomain.com/ptirc_confirm.html

🔧 How to Upload

Normal Hosting:

  • Use FTP, SFTP or your hosting control panel
  • Place the file in the main folder (usually public_html, htdocs or /)

GitHub Pages:

  1. Create a repository with your domain name
  2. Enable GitHub Pages in settings
  3. Place ptirc_confirm.html at the repository root
  4. Configure your custom domain in GitHub Pages settings

Vercel/Netlify:

  • Deploy the file as a static project
  • Ensure it's serving at the domain root

🎯 Purpose

This file verifies that you control the domain where it's hosted. The PTirc network will use this verification to associate services with your domain.

❓ Common Issues

Q: Domain appears wrong
A: Make sure you're accessing it from the correct domain. The file automatically detects where it's being served from.

Q: Page doesn't load
A: Check if the file is at the root and the name is correct (ptirc_confirm.html, not ptirc_confirm.html.txt)

✅ What you'll see

  • Your domain in a professional design
  • Messages in Portuguese and English
  • A green verification badge
<!doctype html>
<html lang="pt">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Confirmação de Domínio | PTirc Network</title>
<meta name="ptirc-domain" content="">
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
background: white;
border-radius: 20px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
overflow: hidden;
max-width: 800px;
width: 100%;
animation: slideUp 0.6s ease-out;
}
.header {
background: linear-gradient(to right, #4f46e5, #7c3aed);
color: white;
padding: 30px;
text-align: center;
}
.header h1 {
font-size: 2.2em;
margin-bottom: 10px;
font-weight: 700;
}
.header .logo {
font-size: 2.8em;
margin-bottom: 15px;
display: block;
}
.content {
padding: 40px;
}
.domain-display {
background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 100%);
border: 3px solid #4f46e5;
border-radius: 15px;
padding: 25px;
margin: 30px 0;
text-align: center;
transition: all 0.3s ease;
}
.domain-display:hover {
transform: translateY(-5px);
box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
}
.domain-label {
color: #4f46e5;
font-size: 1.1em;
font-weight: 600;
margin-bottom: 15px;
text-transform: uppercase;
letter-spacing: 1px;
}
#domain, #domain2 {
color: #1e293b;
font-size: 2.2em;
font-weight: 800;
word-break: break-all;
padding: 10px;
background: white;
border-radius: 10px;
margin: 5px 0;
display: inline-block;
min-width: 200px;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.message {
font-size: 1.2em;
line-height: 1.6;
color: #374151;
margin-bottom: 25px;
text-align: center;
}
.language-section {
margin-bottom: 30px;
padding: 20px;
background: #f8fafc;
border-radius: 12px;
border-left: 5px solid #4f46e5;
}
.language-title {
color: #4f46e5;
font-weight: 600;
margin-bottom: 15px;
font-size: 1.1em;
display: flex;
align-items: center;
gap: 10px;
}
.language-title::before {
content: "🌐";
font-size: 1.2em;
}
.verification-badge {
background: #10b981;
color: white;
padding: 12px 25px;
border-radius: 50px;
display: inline-flex;
align-items: center;
gap: 10px;
font-weight: 600;
margin-top: 20px;
box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}
.verification-badge::before {
content: "✓";
font-size: 1.5em;
}
.footer {
text-align: center;
padding: 25px;
background: #f8fafc;
color: #64748b;
font-size: 0.9em;
border-top: 1px solid #e2e8f0;
}
.footer a {
color: #4f46e5;
text-decoration: none;
font-weight: 600;
}
@keyframes slideUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (max-width: 768px) {
.content {
padding: 25px;
}
.header h1 {
font-size: 1.8em;
}
#domain, #domain2 {
font-size: 1.8em;
}
.domain-display {
padding: 20px;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<div class="logo">🔐</div>
<h1>Confirmação de Domínio</h1>
<p>Domain Verification Certificate</p>
</div>
<div class="content">
<div class="domain-display">
<div class="domain-label">Domínio Verificado / Verified Domain</div>
<div id="domain" class="domain-name"></div>
<div id="domain2" class="domain-name" style="display: none;"></div>
</div>
<div class="language-section">
<div class="language-title">Português</div>
<p class="message">
Este documento confirma oficialmente a propriedade do domínio acima
para a rede <strong>PTirc</strong>. Este arquivo serve como prova de
verificação de domínio.
</p>
</div>
<div class="language-section">
<div class="language-title">English</div>
<p class="message">
This document officially confirms ownership of the above domain
for the <strong>PTirc Network</strong>. This file serves as domain
verification proof.
</p>
</div>
<div style="text-align: center;">
<div class="verification-badge">
Verificação Ativa • Active Verification
</div>
</div>
</div>
<div class="footer">
<p>© PTirc Network</p>
<p>Este documento é gerado automaticamente • Válido para fins de verificação de domínio</p>
<p>This document is automatically generated • Valid for domain verification purposes</p>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const hostname = window.location.hostname.replace(/^www\./, '');
const domainElement = document.getElementById('domain');
domainElement.textContent = hostname;
document.querySelector('meta[name="ptirc-domain"]').content = hostname;
// Add a subtle animation when domain loads
setTimeout(() => {
domainElement.style.transform = 'scale(1.05)';
domainElement.style.transition = 'transform 0.3s ease';
setTimeout(() => {
domainElement.style.transform = 'scale(1)';
}, 300);
}, 500);
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment