Jump to content

Want to restrict access to a folder to WHMCS users only. How can I do it?


SMRHosting

Recommended Posts

I have a file repo at mywebsite.not/vpn-configuration-files/ it holds my VPN config files and I would like to restrict access to either the whole folder which contains 1 PHP file that runs the script or if its possible to integrate the script into a WHMCS page that would be acceptable as well but I am unsure of where to start. I wouldn't mind paying to have someone do it but I don't know the best way to do it or what I should even ask to have done. I really do not want to have it auth via radius and that would be the only way I know how to implement it.

Link to comment
Share on other sites

Why don't you use the downloads section for this?

 

1. Create a category (Support > Downloads > Add Category)

2. Make the category hidden (click "Tick to Hide" after entering name and description)

3. Add your downloads to the category ("Add Download" tab)

4. Set each download as a Product Download (check the "Product Download" box on each product)

5. Edit your product, to add the download(s) (Settings > Products/Services > Products/Services)

6. Click the "Other" tab and add the newly created download(s) to the products ("Associated Downloads" section)

 

Now, you can allow the clients to purchase the product, which creates essentially creates the "subscription", then they have the download(s) available to them in their product details.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated