Monday, April 16, 2012

Zaštita sadržaja preko .htaccess i .htpasswd

U cilju korišćenja .htaccess fajla za zaštitu sadržaja foldera, neophodno je da Apache server podešavanje bude konfigursano kao AllowOverride All. Ovo podešavanja podrazumeva da Apache server sledi instrukcije  .htaccess fajla, što je podrazumevno podešavanja za većinu Linux hosting rešenja, ali svakako proverite.

Prvo, kopirajte sledeći tekst u vaš .htaccess fajl koji je neophodno da upload-ujete u folder koji želite da zaštitite:

AuthName “Password Protect Directory”
AuthType Basic
AuthUserFile /home/username/.htpasswd
<Limit GET POST PUT>
Require valid-user
</Limit>

Pristupite vašem hosting nalogu i izvršite sledeću komandu:

htpasswd -c /home/username/.htpasswd your_desire_username

ili  iskoristite bilo koji internet servis za generisanje .htpasswd fajla.

2 comments:

  1. Best Casino Sites in South Africa 2021
    BetRivers Casino is an online 365 bet casino site that has received massive player reviews. This 스포츠사이트 platform is 벳3 dedicated to providing a range of entertainment, 🎲 Casino Games: 1000+💲 Games: 550+💸 Min Withdrawal: $/£/€ 35📱 Mobile Version: Android, iPhone, 암호화폐란 Tablet Rating: 3 · ‎Review by CasinosSites.one 1xbet 우회 주소

    ReplyDelete
  2. These usually require gamers to wager the quantity of the bonus a specified variety of instances. That can range from 1x all finest way|the method in which} up to as} 40x the bonus quantity. These are just some examples of popular sidebet choices. Typically any other sidebets could be related as they pay at numerous odds for different mixtures of playing cards from the unique deal. Besides variations, we even have side bets which have been added to encourage and attract more gamers to strive 메리트카지노 the game. These wagers are usually not advantageous for gamers and serve largely to improve the house’s margins.

    ReplyDelete