SHARE
TWEET

hit-booster

reges007 Apr 5th, 2015 (edited) 3,077 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. --[[ <HCExtension>
  2. @name              Booster hit static contens with fake validation
  3. @author            reges007
  4. @version           1
  5. @description       hit tanpa perlu validasi ke server khusus static contents
  6. @exception         badge.facebook.com
  7. @rule              ^.*(akamaihd|fbcdn).*\.(jpg|png|gif)(\?|$)
  8. @rule              ^.*akamaihd.net/rsrc.php.*\.(css|js)$
  9. @rule              fbcok.eleximg.com/.*/web
  10. @rule              safe_image\.php
  11. @event             RequestHeaderReceived/hit
  12. @event             BeforeAnswerHeaderSend/replace
  13. </HCExtension> ]]
  14.  
  15. function hit()
  16.                              if  hc.cache_file_name~=nil then
  17.                                   hc.action = 'dont_update-'
  18.                              end
  19. end
  20.  
  21. function replace()
  22.               if re.match(hc.answer_header, [[^Server: HandyCache[^\r\n]+]]) then
  23.         hc.answer_header = re.replace(hc.answer_header, [[^Server: HandyCache[^\r\n]+]], 'Server: HandyCache/REGES007\r\nAccess-Control-Allow-Origin: *\r\nTiming-Allow-Origin: *')
  24.         hc.monitor_string = hc.monitor_string.. 'Hit-Booster'
  25.              end
  26. end
  27.  
  28. -- jika ingin menambahkan host/kontent url pastikan bahwa url konten tersebut benar-benar static
  29. -- untuk menghemat waktu pengecekan validasi ke internet tinngal tambahkan dng mengetik @rule blablabla
  30. -- lalu tempatkan secara urut di barisan @rule
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top