1. Halo Guest, pastikan Anda selalu menaati peraturan forum sebelum mengirimkan post atau thread baru.

[ask] blocking ip range pake htaccess

Discussion in 'Pemrograman Web' started by mp3online, May 29, 2014.

  1. mp3online

    mp3online Super Hero

    Joined:
    Jul 19, 2011
    Messages:
    2,228
    Likes Received:
    294
    Location:
    jakarta
    numpang tanya mastah.
    penulisan htaccess untuk blokir ip range yg benar gmn sih?
    aku pake gini kok msh tembus ya?
    Code:
    order allow,deny
    deny from 91.121.122.
    deny from 95.85.60.
    deny from 78.46.
    allow from all
     
  2. gudel

    gudel Ads.id Pro

    Joined:
    Dec 13, 2012
    Messages:
    269
    Likes Received:
    24
    Klo ip range bs d blok via cpanel pak. Ntar otomatis rewrite di htaccess nya. Td mo tak reply d forum sblah udh d lock trit nya. Aku ada script e buat antiflud sm hidden separate content.
     
    mp3online likes this.
  3. keblux

    keblux Ads.id Fan

    Joined:
    Nov 17, 2011
    Messages:
    101
    Likes Received:
    69
    coba subnet CIDR notation nya yg full

    PHP:
    order allow,deny 
    deny from 91.121.122.0
    /24 
    deny from 95.85.60.0
    /24 
    deny from 78.46.0.0
    /16 
    allow from all
    biasa make nginx deny 78.46.0.0/16; beres...
     
    mp3online likes this.
  4. mp3online

    mp3online Super Hero

    Joined:
    Jul 19, 2011
    Messages:
    2,228
    Likes Received:
    294
    Location:
    jakarta
    scriptnya pm di sini aja kang :)

    makasih mastah, ntar dicoba
     

Share This Page