Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

question about using .htaccess and mod_rewrite.c

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

  1. lottocheatah

    lottocheatah Active Member

    May 17, 2011
    Likes Received:
    Trophy Points:
    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

    Oct 2, 2010
    Likes Received:
    Trophy Points:
    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.
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice