Skip to content

Cookie settings

Choose which kinds of cookies you allow. You can change your choice at any time via Cookie settings at the bottom of every page. Privacy statement

Necessary

Always on

Needed to log in, keep your cart and remember your choices. These are always on.

Which cookies?
  • weboke_sessie, weboke_klant, weboke_remember: your session and staying logged in
  • weboke_basket: your cart
  • wkBtwIncl: showing prices with or without VAT
  • wok_cookies: your cookie choice, 12 months

Measures which ad leads to a visit or order, so we do not pay for ads that do nothing.

Which cookies?
  • Google Ads via Google Tag Manager (_gcl_au, _gcl_aw), up to 90 days
  • OpenAI Ads, ads in ChatGPT
  • wok_aff: which partner referred you to us (affiliate programme), 60 days

4.6

Country and language

Each country has its own site, with prices and VAT for that country.

View

Password-protecting a directory in DirectAdmin

In DirectAdmin, you can easily protect a folder of your website with a username and password. Visitors will then see a login window first.

  1. Log in to DirectAdmin: in My WebOké, go to My Products and click DirectAdmin next to your hosting package.
  2. Select the correct domain in the top right and, under Advanced Features, click Password Protected Directories.
  3. Click Add Protected Directory.
  4. Under Path, choose the folder you want to protect, for example public_html/beheer.
  5. Under Directory realm, enter the text visitors will see in the login window and click Protect.
  6. Then add the users who are allowed access, each with their own username and password.
The form for adding a protected directory
Protecting a folder with a password

Only use this on a site with https. Without https, the password travels across the internet in readable form. See Activating an SSL certificate.

DirectAdmin then places a .htaccess file in that folder. You can add more users later or remove the protection again on the same page.

Protecting a single file

Do you only want to protect a single file, for example admin.php? First protect the folder as described above, so the password file exists. Then edit the .htaccess with a block such as:

<FilesMatch "^(admin|beheer)\.php$">
AuthName "Alleen voor beheerders"
AuthType Basic
AuthUserFile /home/gebruiker/domains/jouwdomein.nl/.htpasswd/public_html/map/.htpasswd
Require valid-user
</FilesMatch>

Copy the path for AuthUserFile from the .htaccess that DirectAdmin created.

Do you use clean URLs, as with WordPress? Then also read .htaccess: clean URLs and still protecting a folder.

See also in the DirectAdmin manual: Showing and editing hidden files such as .htaccess.

Detailed explanation with screenshots: Password Protected Directories in the DirectAdmin manual.

Was this article helpful?

← Back to DirectAdmin and WebOké control panel

One moment…

Set up your domains

For each domain, arrange the nameservers, the link to your hosting and who becomes the owner.

Loading your domains…