Use PHP to change your 404???,? its power?

Source: Internet
Author: User
Tags rtrim
404??, Many people know that if they want to? The URL does not exist, the waiting to be taken to show??? In the past, in the 404 aspect of the rationale for me? The usual practice is to????? Line of words, and a person or???? A little landscaping, and a small number of others want to vote? Trickery even use meta?? To be deferred? Yes, that's it. 404? Can I do a lot of things? of the heavy.

First of all, I?? What can I do with my 404? What I do:

1. He can sue me? From where? Where am I? The URL, the loss of the fruit.

2. How can he sue me????? URL, and help me to the station

3. Can he sue me? IP address of the party

4. He can tell me what my man's intentions are.

5. Can I? He put those who don't want to sue me?? Mouth

6. Can he want to sue me for my email?? I

7. Can he? I do 301 permanent redirects.

8. Can he sue? Invade my station or the Lord?

It's very dark and gorgeous, okay, then, I'll???. What the hell is he doing? One analysis:

1. Can I use PHP to capture the source URL and URL, so the first? To do.

2. Because of the source URL, so you can be very straight to the guess? To use the meaning of, I?? example, like my station http://www.7di.net, what if the source URL is http://www.7di.net, and the current URL to capture is http://www.7di.net/user.php?id=1? What is the person in?? The??? of my station? A person's??? Can't find it?? ?,? Ming: id=1??? May not exist? have been lost, then? You want to see it? The URL of the super-connection, if there is, you have to think? Drop It!

3.?? function is more than??? , just use PHP to capture the IP of the side. And then with the other station IP? The function of the physical address to know the person?

4.?? The function is very good, very big. Because my? station Www.7di.net is my own configuration of the service, so the safety of all rely on their own?? And often have some non-inflow? A person's sense of service, he?? Use the program?? Each method?? into the server, and this? You???. You're in a short???. Received a lot of 404??, and? Source URL? Empty, he? URLs are some very sensitive URLs, this? All you have to do is hit the fire. And then the clean-up is sealed off?? IP. Recent paragraph?? Is this how I sealed it? IP, what a soldier! , information?? The IP of the department was also sealed by me, I am in the station? You???? What's that, ~~!?

5.???,?? Plug - ins?? I am very??, because of the blessing of him every day, I have received hundreds of e-mails, some because of the use of normal??? What is the cause of the search engine?? Some of them are caused by the reasons why they want to invade, and they do not have to do so. I have to change the name of the exhibition in accordance with the or IP-compliant parts of the??, as long as they meet the right-hand parts of the,?? It's a lot more refreshing.

6.? Not PHP is?? The function of sending email, my practice is to modify php.ini??? PHP Department mail letter?? Send it, huh? If you can also use other methods, such as: Ann SendMail or?? A mail?? To help a third-party SMTP delivery. As long as you are happy (with??? Not today's????).

7. Since you can??? To??? Face, Ming??? The URL does not exist, so I want to lead the use of, can??? To the URL of the right, then? Since it was cited??? The URL of a positive? Direct use of a meta?? Or a JS extension? Why the big trouble 301? I don't want to be a search engine?? I'm cheating!

8. I am in? What is the basis of the contract for the small three? How familiar are you with your own station? What's more, you want to be big?? What are the URLs of your stations that have been replaced by other stations? Ah, non-overnight can be overnight).

?? , do you want to put it down, take it? Yes, I'll put it on. 404.php, then Apache or Nginx's 404??? Pointing?? On the line.

 '; $msg. = (IsSet ($_server[' remote_addr '))? "?? The IP of the user is:
{$_server[' REMOTE_ADDR '}
":"; $msg. = "????:
". Date (' y-m-d h:i:s ', Time ()). '

'; $msg. = (IsSet ($_server[' remote_host '))? "{$_server[' Remote_host '}

" : '
'; $msg. = (IsSet ($_server[' http_user_agent '))? "?? Person??? Material:
{$_server[' http_user_agent '}

":"; $msg. = (IsSet ($_server[' Request_uri '))? "want to?? The face is:
{$MyDomain} {$_server[' Request_uri '}

":"; $msg. = (IsSet ($_server[' http_referer ') and Trim ($_server[' http_referer '])! = ")?The source address is:
{$_server[' Http_referer '}

":"; $msg. = '';//what type of URL is not? e-mail, if you do not block out? Can I $arr=array (' mp3 ', ' rm ', ' swf ', ' jpg ', ' gif ');//What IP is not? e-Mail, some of the basic search engine spider $arrip=array (' 66.249.77.217 ', ' 66.249.74.67 '); Exhibition name $needex=explode ('. ', Strtolower (Trim ($_server[' Request_uri '))); $needEx =end ($needEx); In_array ($needEx, $arr) and! In_array (Trim ($_server[' remote_addr '), $arrIP)) {Mail2 (' see7di@gmail.com ', '? from "'. $MyURL. ') "The 404??! ', $msg);} UnSet ($MyURL, $msg, $needEx, $arr); Header (' http/1.1 301 Moved permanently '); Header ("location:{$MyDomain}");D ie ();

Note: What if you feel that? ? Can't you? Look, the drum? You change him, perfect it, add? He, I? Do you share your work? I,?? La ~~~~!

? Welcome everyone together? My PHP Group Exchange,?? is: 223494678

  • Related Article

    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.