BANs and creating a custom 404 page in PHP?

Discussion in 'PHP' started by anton-io!, May 22, 2008.

  1. #1
    Hello

    Does anyone know how to create or modify BANs to come up with a custom 404 page.

    cPanel method does not work - it's in the PHP code
    .htaccess does not work either.


    example:

    yourbans_store.com [good]
    yourbans_store.com/product_A [good]
    yourbans_store.com/product_aksdjh**asdjhajshd [NOT Good] - 404 should come up
    - what happens here is it redirects to home page.

    thx
     
    anton-io!, May 22, 2008 IP
  2. PowerExtreme

    PowerExtreme Banned

    Messages:
    2,118
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #2
    does mod-rewrite work on ur server ?

    Edit

    You will have to modify the site to redirect to 404 page instead of homepage
     
    PowerExtreme, May 22, 2008 IP
  3. anton-io!

    anton-io! Active Member

    Messages:
    540
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    58
    #3
    mod_rewrite - yes, script uses it
    modify to redirect to 404, yes, it's in the script somewhere, wondering if anyone else has come accross this
    thx
     
    anton-io!, May 22, 2008 IP