Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have dedicated server, control panel is DirectAdmin and OS is linux. Using the copy copy ( "https://example.com/file.mp3" , string $dest) command in PHP, The file can be copied. How can I prevent? Prevent copying server to server this link for example: https://example.com/file.mp3
Take a look at this question on ServerFault (assuming you use Apache2):
Apache .htaccess file to restrict access to file except when loaded from a certain url
or this:
control Apache referrer to restrict downloads in htaccess file
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I recently noticed that in server a files is created by name bat.php, I downloaded the file and checked in local, it has some codes which i didnt understand and wondered what is this file and how it got generated in my server.
Can anyone tell me what is this? and why it is generated?
Looks like someone has compromised your security and installed a Web Shell script on your server. Here's the actual code! https://github.com/k4mpr3t/b4tm4n
Remove it NOW! This will allow the user to run CLI commands on your system!
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Can a web server push multiple downloads to a browser and ask it to download all the files and place them in the local storage in a pre-provided directory structure.
No.
You have two main options.
Serve a .zip file with the directory structure inside it.
Your web page can initiate multiple downloads - although the browser will warn the user.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have a private server on which I have placed a .php file in the root folder.
I want to run the .php file script by accessing it from the URL.
SO how can this be achieved.
Did you installed apache yet? to run a php page you need a web server like apache, nginx.
If installed, place your php file in public_html folder.
then, you can execute your php file by visiting http://yourdomain.com/yourpage.php
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How I can host Media files like mp3 in a different server ?
I have a website for converting videos to audio.
I want to host this audio files in a different server, but I want to keep the codein the first server.
Is this possible?
For example, if the user finished the conversion, he will be redirected to the other server.
http://example.com/.... ===> http://serv55.example.com/.....
It sounds like what you want to do is have the first server which does the processing copy the file onto the 2nd server once it's finished processing.
The best way to do this (depending on your setup) would probably be using ssh to copy the files.
http://php.net/manual/en/function.ssh2-scp-send.php
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a LAMP configuration set up in a VM WARE. I am going to transfer files via FTP using transmit client.
Currently I have my files in the following directory
192.133.323.122/website/project/home.php
Do I create a folder in a specific directory?
Usually it'll go in your
your_user_here/var/www
but it doesn't matter really, as long as you know where it is and you know how to reach it.
I would suggest creating a folder with the name of the site, so you can find it easily, so it'll be something:
your_user_root/var/www/project_name