Sideen Uga Hortagi Karaa URL-ka Tooska ah Si loo Helo Faylasha Muuqaaladayda Ka baxsan Websaydhadeyda?

Xalkani wuxuu ka hortegi doonaa URL tooska ah galaangalka faylasha kujira liiskaaga wakiilada shabakada Apache, kuwaa badankood.

Qufulista Faylashaada

Marka hore, samee faylka qoraalka ah oo la magacaabay htaccess.txt

Marka xigta, ku dar tusmadaan:

# Simple File List Access Restricter

RewriteEngine On

# 1) If NOT the current host
RewriteCond %{HTTP_HOST}@@%{HTTP_REFERER} !^([^@]*)@@https?://\1/.*

# 2) Deny access to these types
RewriteRule \.(gif|jpg|jpeg|png|tif|pdf|wav|wmv|wma|avi|mov|mp4|m4v|mp3|zip?)$ - [F]

Safka ugu dambeeya, waad baddali kartaa noocyada faylka aad rabto inaad xadido.

Marka xigta, ku rid faylkan galka liiska faylkaaga.
Goobta asalka ah waa: wp-content / uploads / liistada-faylka-fudud /

Magaca faylka dib ugu magacow: .htaccess
Ogsoonow in tani ay ka dhigeyso feyl qarsoon. Haddii ay baaba'do, ha argagixin. Daar "Muuji Faylasha Qarsoon" si aad u aragto.

Hadda duub boorsadaada iskuna day inaad gasho feyl toos ah. Waa inaad heshaa qalad la mamnuucay, laakiin waa inaad awoodid inaad furato oo aad kala soo baxdo faylasha bogagga boggaaga.

FIIRO GAAR AH: Tani waxay jabin doontaa xiriiriyeyaasha emaylka ah ee ku jira shaqada Faylasha dir iyo ogeysiiska faylkaaga gelinta ogaysiiska (maadaama ay yihiin xiriirro toos ah), laakiin wax kasta oo ku jira bartaada ayaa u shaqeyn doona sidii caadiga ahayd.

MUHIIM AH: Hadaad iskudayeyso inaad ka ilaaliso marin u helka isticmaaleyaashaada xalkaan si dhib yar ayaa loo weecin karaa. Isticmaalayaasha abuuri kara qoraal ama boggag waxay abuuri karaan xiriiriyeyaal faylasha bogaggooda, markaa hel faylka adoo gujinaya xiriirinta.

3 fikradood oo ku saabsan "Sideen Uga Hortagi Karaa Helitaanka URL Tooska ah ee Faylashayaga Dibedda Shabakaddayda?

Leave a Comment

Boggani wuxuu isticmaalaa Akismet si loo yareeyo spam. Baro sida xogtaada faallooyinkaaga looga shaqeeyo.