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

How can I block an IP address?

Want to block certain IP addresses from your website? You can do that with a .htaccess file or with a bit of PHP.

With .htaccess

Put this in the .htaccess file in the public_html folder:

<RequireAll>
Require all granted
Require not ip 192.0.2.10
Require not ip 198.51.100.0/24
</RequireAll>

Require all granted allows everyone. The line with 192.0.2.10 then blocks a single address, and the line with /24 blocks an entire range. Replace the example addresses with the addresses you want to block.

With PHP

<?php
$blokkeer = ['192.0.2.10', '198.51.100.20'];
if (in_array($_SERVER['REMOTE_ADDR'], $blokkeer, true)) {
    http_response_code(403);
    exit;
}

Put this at the top of your index.php or in a file that is loaded on every page.

Tip: dealing with attacks or spam? Then also take a look at the Web Application Firewall and Imunify360 in DirectAdmin.

See also in the DirectAdmin manual: Web Application Firewall.

Detailed explanation with screenshots: Showing and editing hidden files such as .htaccess in the DirectAdmin manual.

Was this article helpful?

← Back to General hosting

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…