Results 1 to 5 of 5

Thread: Secure wordpress by using .htaccess file.

  1. #1
    Join Date
    Sep 2008
    Location
    Nashik
    Posts
    51

    Default Secure wordpress by using .htaccess file.

    In wordpress installation wp-config.php file having all details related to wordpress installation like database user and password. To secure wordpress installation refer following code in .htaccess file present in root of your wordpress installation.

    <files wp-config.php>
    order allow,deny
    deny from all
    </files>
    The wordpress blogs mostly injected by the hackers and we can secure wordpress blog from such injection by using following code in wordpress

    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    RewriteRule ^(.*)$ index.php [F,L]
    Regards,
    Gunjan Sonar

  2. #2
    Join Date
    Dec 2010
    Posts
    5

    Default

    Thanks.
    I will test, i think .htaccess is usefull for many cases

  3. #3
    Join Date
    Nov 2010
    Posts
    1

    Default

    My name is Black
    I`m from New York.
    I like fashion games
    Love dance music.
    Nice too met you every member

  4. #4

    Default

    Thanks.
    That was helpful. Will see if that works at my end.
    Last edited by YogeshA; 12-31-2010 at 12:18 AM.
    Regards,
    Yogesh

  5. #5
    Join Date
    Apr 2011
    Posts
    4

    Default

    Quote Originally Posted by Gunjan View Post
    In wordpress installation wp-config.php file having all details related to wordpress installation like database user and password. To secure wordpress installation refer following code in .htaccess file present in root of your wordpress installation.



    The wordpress blogs mostly injected by the hackers and we can secure wordpress blog from such injection by using following code in wordpress
    thank you for the post.. that was helpful........

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •