PHP? Change? Your 404 ???,? What is its power? 404 ??, Many people know that if you want ?? ? Wait? ? ??? Face. in the past? Why am I in 404? The common practice is ????? Line word, but interested people or ???? It is slightly beautifying, and a few others want to invest? Clever? Some even use meta ?? Extend ?? Direction ,? That's all? 404? Yes? Me? Do a lot of things ,? Is today me? Yes ?? ? Now.
First, I ?? Can I use 404 in the future? What do I do:
1. can he sue? What am I ?? Where? ? Yes ?? Where am I? URL? Result loss? Now.
2. can he sue? Me? Fang? Why ???? URL, and? Help me? ? Site
3. can he sue? Me? Party's IP address
4. can he sue? What do I care about?
5. can I? What does he want to tell? My ?? Mouth
6. can he tell him what he wants? I am using email ?? Me
7. can he? I am doing 301 permanent redirection.
8. can he sue? Someone else is there ?? Intrude into me? Station or main?
? Start? Very mysterious and dazzling, Okay, next? Me? That's ??? What exactly does it mean? Analysis:
1. me? Can be captured using PHP? ? Source url and? Before the URL, so the first? Me? Yes ?? .
2. why? Yes? Source url, so you can be straight? Guess? To use? ? Me ?? Example, like mine? Station http://www.7di.net, if some? Use? ? Is the source URL a http://www.7di.net while capturing his current URL a http://www.7di.net/user.php? Id = 1? ? This person is here ?? My? Station? Hou ??? ? Person's? Persons? Material ??? Cannot be found ?? Person's? Expected? Outbound ?,? Ming: ID = 1 ?? May not exist? Already? By? Lost, then? You have to take a look? Station? Yes ?? What is the URL? If yes? Want? Method to take it ?? Drop it!
3 .?? Functions ??? You just need to use PHP to capture it? You can use the ip address of the third party. then use the ip address of the third party? IP address of the website? The physical address function can know this person? Where? Now.
4 .?? Very good, very? Big. why? My? Is www.7di.net a self-configured server? So security depends on yourself ?? And sometimes some are not streaming? Guys ?? Person's server? Sense? Qu, he ?? Application ?? ? Method ?? ? And this? You are ??? Are you short ??? A large number of 404 ??, And? Source url? Empty, him? Yes ?? Are some very sensitive URLs? What you need to do is play? Your fire prevention ?? And then dry? Can I unseal the logs ?? IP. recent? Section ?? I used this method to seal it? Ten? The IP address is really a great achievement of Small Soldiers! Forgot ?? Information ?? The IP address of the department is also blocked by me? Is the device running? You ???? What ?, Really ~~!
5 .???,?? Plug-ins ?? Start? Hou? I am very ??, Because? How do I keep him happy? Yes? Hundreds of emails. why? Use? Normal ??? Why? Various search engines ?? Set? Rong? Why? Small? 3? Want to intrude? Yes ,? No? Which ?, ? How can I change it ?, Put? What is the name of the exhibition? ? All parts are added ??, As long? Some compliance? Is it unnecessary? I sent an Email ,?? I? Refreshing.
6 .? Everything ?? No, PHP is like ?? For the Email sending function, my approach is to modify PHP. INI ??? PHP? Mail letter ?? Send ,? However, you can also use other methods, such as: security? Sendmail or ?? I? Mail ?? Help third-party smtp? All can be sent. as long as you are good (??? Not today's ????).
7. since Yes ??? To ??? Face ,? Usage ??? The URL does not exist, so I? ? Use? Yes ??? To positive? ?, So? Why? Use ??? ? Or? You ?? Directly use one? Meta ?? Or a JS extension? That's all. why? Chapter 301? Why? Because? I don't want to be searched by a search engine ?? I am cheating! Answer ?.
8 .? I? On? Already ?? ? Basically? Small? Sentence 3? Root? Your ?? And? Yourself? Station familiarity ?? Definitely, what's more, are you going to be big ?? What about you? Which URLs are used by other websites? ? Anti? Now (?? Ah, not overnight ).
?? ,? Are you done? OK? It's about to be staged? ? Save? 404. php, then apache or nginx? Of your 404 ??? Point ?? That's all.
'; $ Msg. = (isSet ($ _ SERVER ['remote _ ADDR'])? "?? The IP address 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'])? "?? Who ??? Material:
{$ _ SERVER ['http _ USER_AGENT ']}
":''; $ Msg. = (isSet ($ _ SERVER ['request _ URI '])? "Yes ?? ? Surface 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 URL? Email. if not blocked? Some? Yes? Dead Me $ arr = Array ('mp3', 'rm ', 'swf', 'jpg ', 'GIF'); // which IP addresses are not? Email ,? These are basically search engine spider $ arrIP = Array ('66. 249.77.217 ', '66. 249.74.67'); // Yes ?? ? Exhibition Name $ needEx = Explode ('.', StrToLower (Trim ($ _ SERVER ['request _ URI ']); $ needEx = end ($ needEx); IF (! In_Array ($ needEx, $ arr) And! In_Array (Trim ($ _ SERVER ['remote _ ADDR ']), $ arrIP) {Mail2 ('see7di @ gmail.com ','? 404 from ['. $ MyURL ??! ', $ Msg);} unSet ($ MyURL, $ msg, $ needEx, $ arr); Header ('http/1.1 301 Moved Permanently'); Header ("Location: {$ MyDomain} "); Die ();
Note: What do you think? Upper? Generation? In question ?? ? No? What's yours? Hope, then? Drum? You change? He, perfect it, add? He, me? OK ?, But? Do you share your work? Me ,?? ~~~~!
? Welcome to everyone? My PHP Group Exchange ,?? Yes: 223494678