Wachtwoord op bepaalde web-paginas

Gestart doorPim14 reacties71 weergaven

15 berichten · pagina 1 van 1

Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Hallo mensen,

Hoe kan ik op een bepaalde pagina van mijn website een wachtwoord zetten?

Voorbeeld:
Op www.bwump.nl kan je gewoon heen. Maar stel de pagina www.bwump.nl/fotos bestaat en je gaat daarheen dat je dan een gebruikersnaam en wachtwoord krijgt?

Grt.
Pim
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Gewoon een htaccess instellen. Goegol!
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
nou ik snap er de ballen niet van.

Ik wil mijn wordpress blog beveiligen.. maar ik snap er niks van.
0
Berichten
2.609
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Kan toch in Wordpress zelf gewoon?
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

[COLOR= #0000BB]<?
$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Gebruikersnaam[/COLOR]
[COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi123[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Wachtwoord[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_USER[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) || ([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_PW[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]WWW-Authenticate: Basic realm=Admin panel[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]HTTP/1.0 401 Unauthorized[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Admin panel - Login[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wouterr schreef:
[COLOR= #0000BB]<?
$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Gebruikersnaam[/COLOR]
[COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi123[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Wachtwoord[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_USER[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) || ([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_PW[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]WWW-Authenticate: Basic realm=Admin panel[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]HTTP/1.0 401 Unauthorized[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Admin panel - Login[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
Hoe gaat een beginner dit in Wordpress integreren?

Je kan toch de subpaginas beveiligen en vanaf de homepagina ernaar linken?
0
Berichten
5.274
Reputatie
1
Punten
0,01
Lid sinds
Laatst gezien

Eindhoven, Nederland

Aarclay schreef:
Eerdere citaten tonen
Wouterr schreef:
[COLOR= #0000BB]<?
$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Gebruikersnaam[/COLOR]
[COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi123[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Wachtwoord[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_USER[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) || ([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_PW[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]WWW-Authenticate: Basic realm=Admin panel[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]HTTP/1.0 401 Unauthorized[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Admin panel - Login[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
Hoe gaat een beginner dit in Wordpress integreren?

Je zou het in je config/index kunnen plakken? Ik had ook al via PM contact met Pim over deze vraag biggrin
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Wouterr schreef:
Eerdere citaten tonen
Aarclay schreef:
Eerdere citaten tonen
Wouterr schreef:
[COLOR= #0000BB]<?
$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Gebruikersnaam[/COLOR]
[COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi123[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Wachtwoord[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_USER[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) || ([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_PW[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]WWW-Authenticate: Basic realm=Admin panel[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]HTTP/1.0 401 Unauthorized[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Admin panel - Login[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
Hoe gaat een beginner dit in Wordpress integreren?
Je zou het in je config/index kunnen plakken? Ik had ook al via PM contact met Pim over deze vraag biggrin
Maar dat is geheel over de hele site, hij wil alleen de begin-pagina beveiligen. Ik zou verder niet weten waarom, andersom leek me eerder gezegd een stuk logischer.
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Eerdere citaten tonen
Wouterr schreef:
Eerdere citaten tonen
Aarclay schreef:
Eerdere citaten tonen
Wouterr schreef:
[COLOR= #0000BB]<?
$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Gebruikersnaam[/COLOR]
[COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]] =[/COLOR] [COLOR= #DD0000]hoi123[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]//Wachtwoord[/COLOR]

[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_USER[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]username[/COLOR][COLOR= #007700]]) || ([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]PHP_AUTH_PW[/COLOR][COLOR= #007700]] !==[/COLOR] [COLOR= #0000BB]$details[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]password[/COLOR][COLOR= #007700]]))
{[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]WWW-Authenticate: Basic realm=Admin panel[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/header"]header[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]HTTP/1.0 401 Unauthorized[/COLOR][COLOR= #007700]);[/COLOR]
    [URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]Admin panel - Login[/COLOR][COLOR= #007700];[/COLOR]
    [URL="http://www.php.net/exit"]exit[/URL][COLOR= #007700];
}[/COLOR]
Hoe gaat een beginner dit in Wordpress integreren?
Je zou het in je config/index kunnen plakken? Ik had ook al via PM contact met Pim over deze vraag biggrin
Maar dat is geheel over de hele site, hij wil alleen de begin-pagina beveiligen. Ik zou verder niet weten waarom, andersom leek me eerder gezegd een stuk logischer.

Nee wil de gehele site beveiligen.
Lijkt me logisch dat als de homepage beveiligd is dat niemand verder op andere paginas kan. Of ze moeten de urls uit hun hoofd kennen zonder ze ooit gezien te hebben?!
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Dan zou ik beter een .htaccess aanmaken met een .htpasswd userlijst.
Op Google staat we hoe je dat kan doen, de Filemanager van DirectAdmin biedt hier ook mogelijkheid in.
0
Pim

Lid · Topicstarter

Berichten
3.655
Reputatie
0
Punten
0,00
Lid sinds
Laatst gezien
Aarclay schreef:
Dan zou ik beter een .htaccess aanmaken met een .htpasswd userlijst.
Op Google staat we hoe je dat kan doen, de Filemanager van DirectAdmin biedt hier ook mogelijkheid in.
Ja heb via internet al het een en ander gevolgd maar kom er niet uit.
Want overal moet ik een .htaccess aanmaken maar die bestaat al in mijn bestanden..
0
Berichten
10.421
Reputatie
4
Punten
0,00
Lid sinds
Laatst gezien
Pim schreef:
Eerdere citaten tonen
Aarclay schreef:
Dan zou ik beter een .htaccess aanmaken met een .htpasswd userlijst.
Op Google staat we hoe je dat kan doen, de Filemanager van DirectAdmin biedt hier ook mogelijkheid in.

Ja heb via internet al het een en ander gevolgd maar kom er niet uit.
Want overal moet ik een .htaccess aanmaken maar die bestaat al in mijn bestanden..
Dan merge je hem toch samen met je bestaande? En hoe bedoel je overal?
Als je hem in je webroot plaatst, dan geldt deze voor alles wat er in staat.

Probeer maar eens.

toevoeging op 20 november 2012, 13:39:20:
Geen PMs a.u.b.

Als je wilt weten wat de webroot is. Dat valt te googlen: klik hier

iets meer motivatie mag overigens wel winkProbeer eens wat, en als het niet lukt, vermeld dan wat er niet lukt, en wat je hebt geprobeerd.
0
Berichten
93.699
Reputatie
0
Punten
1,27
Lid sinds
Laatst gezien
Er zijn ook simpele plugins om alleen de homepage af te schermen.
0

Jouw reactie

Deel je idee, stel een vraag of help een ander verder.

Editor laden…

Praat mee met de One2xs-community.

Inloggen om te reageren