0

I'm somewhat of a Website noob myself. We are currently running Wordpress for our Website. Now I am tasked with the following:
A page to search, download and access certain PDF-documents but only for restricted IP-addresses. The page should be reacheable through the same domain name as the website is currently running on - let's call it my-domain.com.
Now my question is, do you guys know a certain wordpress plugin or some other tool that i can use for this task? I would really like to simply create another page for my website e.g. my-domain.com/downloads that can only be visited by these whitelisted IP-ranges.
I'd really appreciate your help and or comments on the whole thing :)

Regards,
Ole

1 Answers1

0

So, as it turns out I tried some things and found a working solution: It ist possible to add these Rewrite-rules to the apache vhost-config:

    RewriteEngine On
    RewriteCond %{REQUEST_URI} ^\my-url$
    RewriteCond %{REMOTE_ADDR} ^xxx\.xxx\.xxx\.[0-9]{1,3}$ #use regex for ip-range
    RewriteRule ^(.*)$ redirect/url [R=301,L]

Thank your for your comments and help to get on the right track :)