Skip to main content

FTP system automatically delete .PHP

Comments

8 comments

  • 24x7server
    Hi, You have not put the questions properly, so it is bit difficult to understand it clearly. From what I can understand is you want to say that is it possible to delete the .php file automatically through FTP?, right? the answer to it would be that it will not automatically remove the file. It can overwrite an existing file, but cannot delete a file automatically. you have to do it manually. If possible, please explain what exactly you want with an example..
    0
  • Samet Chan
    From what I can understand is you want to say that is it possible to delete the .php file automatically through FTP?, right?example..

    Correct, We want needing for that add directory subfolder from own account and FTP Security system to allow for .PNG & .JPG for image only. Without execution. Because I can't give to my content manager access to FTP is not enough security. We needed for allowed .JPG and .PNG by folder only.
    0
  • cPanelMichael
    Hello, This is unsupported, but if you are willing to make some custom modifications then you may find the following discussion helpful: PureFTP: Denying upload of certain file extensions Thank you.
    0
  • Samet Chan
    Pure-ftpd, a way to modify ftp configuration to limit file size? | Web Hosting Talk I'm afraid, Can you tell me for that where to edit the file. CentOS 7.3 only and FTP system with WHM. I want to be safe. Without error and problem. But you still understand my question? What I mean, there.
    If you access the FTP system then uploaded to server from public_html/library/test/test.php need to be deleted. That is subfolder however. Not All Folder. It is added to folder line and own account.
    0
  • cPanelMichael
    The path for the Pure-FTPd uploadscript binary is "/usr/sbin/pure-uploadscript", however I recommend consulting with a system administrator for help setting that up as it's unsupported. You can find a list of system administration services at: System Administration Services | cPanel Forums Thank you.
    0
  • Samet Chan
    The path for the Pure-FTPd uploadscript binary is "/usr/sbin/pure-uploadscript", however I recommend consulting with a system administrator for help setting that up as it's unsupported. You can find a list of system administration services at: System Administration Services | cPanel Forums Thank you.

    I edited the file was said NULL. I don't need for the managed server.
    ELF
    I opened this file to edit said NULL. Doesn't work. I would like to say deny of .PHP and .PHP.JPG, Others extensions. from here, /home/username/public_html/AnimeCover/Anime/A
    The subfolder - (AnimeCover) needed for deny .PHP extensions, they cannot be against to upload of shell script hacker. It is better to improve security. That why I really needed for this.
    0
  • 24x7server
    Hi, I have thought of another way to do this. You can set a cron to remove the .php file from a folder and execute it every minute, so as soon as anyone uploads PHP file, the next minute the PHP files will be gone. You can also do this via bash script and set what extensions you want to remove from the FTP location you want..
    0
  • Samet Chan
    Hi, I have thought of another way to do this. You can set a cron to remove the .php file from a folder and execute it every minute, so as soon as anyone uploads PHP file, the next minute the PHP files will be gone. You can also do this via bash script and set what extensions you want to remove from the FTP location you want..

    Yep, FTP Location with cPanel account.
    0

Please sign in to leave a comment.