Web site has a php page, how to prevent users from wget to get the PHP source code it?

Source: Internet
Author: User
Tags php source code
Web site has a php page, how to prevent users from wget to get the PHP source code it?
Ask, hehe:)

------Solution--------------------
You wget yourself to see if you can get the source code does not know ...
------Solution--------------------
If you can wget to your own code, you can only say that your environment is not set up, or that your code is not written well.

discuss

Reference:

You wget yourself to see if you can get the source code does not know ...

You can wget your own PHP code, you can not wget other people's PHP code: (

------Solution--------------------
Wget's Own
------Solution--------------------
discuss

Reference:

You wget yourself to see if you can get the source code does not know ...

You can wget your own PHP code, you can not wget other people's PHP code: (

------Solution--------------------
It means no contact with wget.

------Solution--------------------
discuss

Reference:

If you can wget to your own code, you can only say that your environment is not set up, or that your code is not written well.

Reference:

Reference:

You wget yourself to see if you can get the source code does not know ...

You can wget your own PHP code, you can not wget other people's PHP code: (

Rabbit, how to build the environment, to get the code it?

------Solution--------------------
discuss

Reference:

Reference:

If you can wget to your own code, you can only say that your environment is not set up, or that your code is not written well.

Reference:

Reference:

You wget yourself to see if you can get the source code does not know ...

You can wget your own PHP code, you can not wget other people's PHP code: (

Rabbit, how to build the environment, to get the code it?


......

------Solution--------------------
PHP can get the source code, it is not very dangerous!

It is estimated that unless the server is broken, it is impossible
------Solution--------------------
wget a liunx command does not have permission at all to obtain, ....
------Solution--------------------
If your environment is configured OK then this will not happen either browser or wget
A request for a PHP path can only be returned as HTML or the result you want, not the source code, as long as it falls correctly on the PHP parser.
------Solution--------------------
discuss

Reference:

You wget yourself to see if you can get the source code does not know ...

You can wget your own PHP code, you can not wget 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.