• 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
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

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