The website has a php page. how can we prevent users from getting the php source code through wget?

Source: Internet
Author: User
The website has a php page. how can we prevent users from getting the php source code through wget? Ask, haha: you can get the source code by wget yourself ..., if you can wget your code, you can only say that your environment has not been built, or your code has not been written. discussion reference: you put a php page on your own wget website. how can you prevent users from getting the php source code through wget?
Ask, haha :)

------ Solution --------------------
You can get the source code by wget...
------ Solution --------------------
If you can wget your code, you can only say that your environment has not been built, or your code has not been written.

Discussion

Reference:

You can get the source code by wget...

You can wget your own php code, and wget won't be able to get other people's php code :(

------ Solution --------------------
Wget's own
------ Solution --------------------
Discussion

Reference:

You can get the source code by wget...

You can wget your own php code, and wget won't be able to get other people's php code :(

------ Solution --------------------
Indicates that wget has not been touched.

------ Solution --------------------
Discussion

Reference:

If you can wget your code, you can only say that your environment has not been built, or your code has not been written.

Reference:

Reference:

You can get the source code by wget...

You can wget your own php code, and wget won't be able to get other people's php code :(

Rabbit, how can we build an environment to get code?

------ Solution --------------------
Discussion

Reference:

Reference:

If you can wget your code, you can only say that your environment has not been built, or your code has not been written.

Reference:

Reference:

You can get the source code by wget...

You can wget your own php code, and wget won't be able to get other people's php code :(

Rabbit, how can we build an environment to get code?


......

------ Solution --------------------
PHP can obtain the source code, which is not very dangerous!

It is estimated that the server is broken, otherwise it is impossible
------ Solution --------------------
Wget a liunx command does not have the permission to get it at all ,....
------ Solution --------------------
If your environment is configured with OK, this will not happen, whether in the browser or wget
As long as the php path request is correctly sent to the php parser, the returned result can only be HTML or the expected result rather than the source code.
------ Solution --------------------
Discussion

Reference:

You can get the source code by wget...

You can wget your own php code, and wget won't be able to get other people's php code :(

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.