The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

question about using .htaccess and mod_rewrite.c

Discussion in 'Security' started by lottocheatah, May 22, 2011.

  1. lottocheatah

    lottocheatah Active Member

    Joined:
    May 17, 2011
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    I want to install a .htaccess file that blocks bad bots. I found one that looks pretty good at Block Bad robots, spiders, crawlers and harvesters but it also shows a modified mod_rewrite.c file. Do I need to also replace the mod_rewrite.c file when I mount this better .htaccess file or will apachie automatically write this for me from the .htaccess?
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    The rewrites provided are for the .htaccess file. Any user, unless rewrites are disabled, can add rewrites to .htaccess such as provided in that tutorial. You would not replace the existing mod_rewrite for Apache with those contents, simply copy them into the user's existing .htaccess file.
     
Loading...

Share This Page