Iată un tutorial pas cu pas despre cum să accesezi și să folosești Raw Access Logs în cPanel. Aceste jurnale conțin informații despre toate vizitele pe site-ul tău, inclusiv adresele IP ale vizitatorilor, paginile accesate și datele orare, fiind utile pentru analiza traficului și diagnosticarea problemelor.
Cum să accesezi și să folosești Raw Access Logs în cPanel
1. Autentifică-te în cPanel
- Deschide browserul și accesează cPanel introducând URL-ul:
http://yourdomain.com/cpanel
- Înlocuiește
yourdomain.com
cu numele domeniului tău. - Introdu numele de utilizator și parola pentru contul cPanel.
- Înlocuiește
2. Accesează secțiunea "Raw Access"
- După autentificare, derulează în jos până găsești secțiunea Metrics (Metrici).
- Click pe opțiunea Raw Access.
3. Descărcarea jurnalelor de acces brute
-
Găsirea fișierului de jurnal:
- Pe pagina Raw Access, vei vedea o listă cu fișierele de jurnal disponibile pentru descărcare. Aceste fișiere sunt organizate pe zile, iar numele lor conțin data corespunzătoare.
- De obicei, fișierele au extensia
.gz
, care indică faptul că sunt comprimate pentru a economisi spațiu.
-
Descărcarea fișierului:
- Click pe fișierul dorit pentru a-l descărca pe computerul tău. De exemplu,
access-logs-2024-10-10.gz
.
- Click pe fișierul dorit pentru a-l descărca pe computerul tău. De exemplu,
4. Dezarchivarea fișierului
- Fișierele
.gz
sunt comprimate, așa că va trebui să le dezarhivezi. - Poți folosi un program precum WinRAR sau 7-Zip pe Windows sau The Unarchiver pe macOS pentru a dezarhiva fișierul.
5. Vizualizarea jurnalelor
-
Odată ce fișierul a fost dezarhivat, deschide-l cu un editor de text (Notepad, Sublime Text, etc.) sau cu un program specializat pentru vizualizarea logurilor, cum ar fi Notepad++.
-
Jurnalul conține linii cu informații despre fiecare vizită, organizate în mod tipic în următoarea structură:
ip_address - - [date_time] "request_method requested_url protocol" response_code response_size
Exemplu:
192.168.1.1 - - [10/Oct/2024:13:55:36 +0000] "GET /index.php HTTP/1.1" 200 2326
6. Analiza datelor din jurnal
- Fiecare linie din jurnal conține informații precum:
- ip_address: Adresa IP a vizitatorului.
- date_time: Data și ora la care a avut loc accesul.
- request_method: Metoda HTTP folosită (GET, POST etc.).
- requested_url: URL-ul accesat.
- protocol: Protocolul folosit (de obicei HTTP/1.1).
- response_code: Codul de răspuns HTTP (200, 404 etc.).
- response_size: Dimensiunea răspunsului în bytes.
7. Securitate și confidențialitate
- Fii conștient de faptul că aceste jurnale conțin informații despre vizitatorii tăi, inclusiv adrese IP. Asigură-te că le gestionezi cu grijă și că respecți politicile de confidențialitate aplicabile.
Sfaturi suplimentare:
- Analiza traficului: Poți folosi instrumente de analiză a jurnalelor pentru a obține statistici detaliate despre vizitele pe site-ul tău.
- Monitorizarea erorilor: Verifică codurile de răspuns HTTP pentru a identifica eventuale erori (de exemplu, 404 pentru pagini lipsă).
Prin acești pași, ai învățat cum să accesezi și să folosești Raw Access Logs în cPanel pentru a analiza traficul pe site-ul tău. Aceste informații sunt esențiale pentru îmbunătățirea experienței utilizatorului și pentru optimizarea site-ului.