Eric @ EricBess WebHome

Wins do not arrogant, not to lose hungry, there is shock chest and face, such as mine Pinghu

Chinese (Simplified) flagItalian flagKorean flagPortuguese flagEnglish flagGerman flagFrench flagSpanish flagJapanese flagArabic flagRussian flagGreek flagDutch flagBulgarian flagCzech flagCroat flagDanish flagFinnish flagHindi flagPolish flagRumanian flagSwedish flagNorwegian flagCatalan flagFilipino flagHebrew flagIndonesian flagLatvian flagLithuanian flagSerbian flagSlovak flagSlovenian flagUkrainian flagVietnamese flag
By N2H

php to prevent malicious applets visit

Originally written PAYPAL IPN response when used repeatedly to try to prevent a function of the protection of the poor, later changed to address the original audit ($ hostname = gethostbyaddr ($ _SERVER [ 'REMOTE_ADDR']); if (! Preg_match ( '/ paypal \. com $ / ', $ hostname)) {.....), it abandoned on the 000. In the record before the cut did not come, there should be a better algorithm, the study who do not know.

? View Code PHP
 1 
 2 
  3, 
 4 
 5 
 6 
 7 
 8 
 9 
 10 
  Of 11 
  12, 
  13, 
 14 
 15 
  16, 
 17 
  , 18 
 19 
  ! avoid_refresh ( '15' ) ) die ( "Hacking Attempt!!" ) ; if (! avoid_refresh ('15 ')) die ( "Hacking Attempt!!"); 
  ..... 
  ..... 
  ..... 
  $time ) { function avoid_refresh ($ time) ( 
	  ; session_start (); 
    isset ( $_SESSION [ "post_sep" ] ) ) { if (isset ($ _SESSION [ "post_sep"])) ( 
        time ( ) - $_SESSION [ "post_sep" ] < $time ) { if (time () - $ _SESSION [ "post_sep"] <$ time) ( 
      	  "post_sep" ] = time ( ) ; $ _SESSION [ "Post_sep"] = time (); 
          ; return false; 
        { ) Else ( 
            "post_sep" ] = time ( ) ; $ _SESSION [ "Post_sep"] = time (); 
            ; return true; 
        ) 
    { ) Else ( 
        "post_sep" ] = time ( ) ; $ _SESSION [ "Post_sep"] = time (); 
        ; return true; 
    ) 
  ) 
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet)
Loading ... Loading ...
- Welcomed the rating for this article

Log-related

In this paper, readers are also concerned about the following:

  • N / A

October 30th, 2008 Author: eric | Coding | Trackback? | No comments | Email This Post Print This Post | 3 views

Add a Comment

Leave a reply

Comments Hide Post Comments