• The APS Catalog has been deprecated and removed from all Plesk Obsidian versions.
    Applications already installed from the APS Catalog will continue working. However, Plesk will no longer provide support for APS applications.
  • Please be aware: with the Plesk Obsidian 18.0.78 release, the support for the ngx_pagespeed.so module will be deprecated and removed from the sw-nginx package.

Resolved Images to subdomain - "write" to be restricted from specific ip.

Sameer Sam

New Pleskian
Server operating system version
Debian 12
Plesk version and microupdate number
18.0.56
I am uploading images to sub-domain. Just found out that any one can upload images to my sub-domain. (sub.example.com)
The images are publicly available.

I am just asking if there is way to restrict ip from plesk firewall or nginx/apache additional setting. Not restrict the access but just only restrict the "write"
 
I assume that the upload is done through a CMS plugin. It is not possible to restrict an IP address to not allow uploads by a server setting, but it is possible to implement a few lines of code in the script that allows the upload to check the IP address of the requestor and only allow uploads from whitelisted ips. How and where to do it depends entirely on the script that is being used.
 
Peter Debik. You the Man. I appreciate your prompt reply. As per your suggestion, I can solve the problem now. Thank very much.
 
Back
Top