• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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