12 Most Useful .htaccess Tricks for WordPress

[agentsw ua=’pc’]

Are you looking for some useful .htaccess tricks for your WordPress site. The .htaccess file is a powerful configuration file which allows you to do a lot of neat things on your website. In this article, we will show you some of the most useful .htaccess tricks for WordPress that you can try right away.

htaccesstricks

Contents

What is .htaccess File and How to Edit it?

The .htaccess file is a server configuration file. It allows you to define rules for your server to follow for your website.

WordPress uses .htaccess file to generate SEO friendly URL structure. However, this file can do a lot more.

The .htaccess file is located in your WordPress site’s root folder. You will need to connect to your website using an FTP client to edit it.

.htaccess file on a WordPress site

If you cannot find your .htaccess file, then see our guide on how to find .htaccess file in WordPress.

Before editing your .htaccess file, it is important to download a copy of it to your computer as backup. You can use that file in case anything goes wrong.

Having said that, let’s take a look at some useful .htaccess tricks for WordPress that you can try.

1. Protect Your WordPress Admin Area

You can use .htaccess to protect your WordPress admin area by limiting the access to selected IP addresses only. Simply copy and paste this code into your .htaccess file:


AuthUserFile /dev/null
AuthGroupFile /dev/null
AuthName "WordPress Admin Access Control"
AuthType Basic
<LIMIT GET>
order deny,allow
deny from all
# whitelist Syed's IP address
allow from xx.xx.xx.xxx
# whitelist David's IP address
allow from xx.xx.xx.xxx
</LIMIT>

Don’t forget to replace xx values with your own IP address. If you use more than one IP address to access the internet, then make sure you add them as well.

For detailed instructions, see our guide on how to limit access to WordPress admin using .htaccess.

2. Password Protect WordPress Admin Folder

Password protect WordPress admin directory

If you access your WordPress site from multiple locations including public internet spots, then limiting access to specific IP addresses may not work for you.

You can use .htaccess file to add an additional password protection to your WordPress admin area.

First, you need to generate a .htpasswds file. You can easily create one by using this online generator.

Upload this .htpasswds file outside your publicly accessible web directory or /public_html/ folder. A good path would be:

/home/user/.htpasswds/public_html/wp-admin/passwd/

Next, create a .htaccess file and upload it in /wp-admin/ directory and then add the following codes in there:

AuthName "Admins Only"
AuthUserFile /home/yourdirectory/.htpasswds/public_html/wp-admin/passwd
AuthGroupFile /dev/null
AuthType basic
require user putyourusernamehere
<Files admin-ajax.php>
Order allow,deny
Allow from all
Satisfy any 
</Files>

Important: Don’t forget to replace AuthUserFile path with the file path of your .htpasswds file and add your own username.

For detailed instructions, see our guide on how to password protect WordPress admin folder.

3. Disable Directory Browsing

Disable directory browsing

Many WordPress security experts recommend disabling directory browsing. With directory browsing enabled, hackers can look into your site’s directory and file structure to find a vulnerable file.

To disable directory browsing on your website, you need to add the following line to your .htaccess file.

Options -Indexes

For more on this topic, see our guide on how to disable directory browsing in WordPress.

4. Disable PHP Execution in Some WordPress Directories

Sometimes hackers break into a WordPress site and install a backdoor. These backdoor files are often disguised as core WordPress files and are placed in /wp-includes/ or /wp-content/uploads/ folders.

An easier way to improve your WordPress security is by disabling PHP execution for some WordPress directories.

You will need to create a blank .htaccess file on your computer and then paste the following code inside it.

<Files *.php>
deny from all
</Files>

Save the file and then upload it to your /wp-content/uploads/ and /wp-includes/ directories. For more information check out our tutorial on how to disable PHP execution in certain WordPress directories.

5. Protect Your WordPress Configuration wp-config.php File

Probably the most important file in your WordPress website’s root directory is wp-config.php file. It contains information about your WordPress database and how to connect to it.

To protect your wp-config.php file from unathorized access, simply add this code to your .htaccess file:

<files wp-config.php>
order allow,deny
deny from all
</files>

6. Setting up 301 Redirects Through .htaccess File

Using 301 redirects is the most SEO friendly way to tell your users that a content has moved to a new location. If you want to properly manage your 301 redirects on posts per post basis, then check out our guide on how to setup redirects in WordPress.

On the other hand, if you want to quickly setup redirects, then all you need to do is paste this code in your .htaccess file.

Redirect 301 /oldurl/ http://www.example.com/newurl
Redirect 301 /category/television/ http://www.example.com/category/tv/

7. Ban Suspicious IP Addresses

Are you seeing unusually high requests to your website from a specific IP address? You can easily block those requests by blocking the IP address in your .htaccess file.

Add the following code to your .htaccess file:

<Limit GET POST>
order allow,deny
deny from xxx.xxx.xx.x
allow from all
</Limit>

Don’t forget to replace xx with the IP address you want to block.

8. Disable Image Hotlinking in WordPress Using .htaccess

Other websites directly hotlinking images from your site can make your WordPress site slow and exceed your bandwidth limit. This isn’t a big issue for most smaller websites. However, if you run a popular website or a website with lots of photos, then this could become a serious concern.

You can prevent image hotlinking by adding this code to your .htaccess file:

#disable hotlinking of images with forbidden or custom image option
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?wpbeginner.com [NC]
RewriteCond %{HTTP_REFERER} !^http(s)?://(www.)?google.com [NC]
RewriteRule .(jpg|jpeg|png|gif)$ – [NC,F,L] 

This code only allows images to be displayed if the request is originating from wpbeginner.com or Google.com. Don’t forget to replace wpbeginner.com with your own domain name.

For more ways to protect your images see our guide on ways to prevent image theft in WordPress.

9. Protect .htaccess From Unauthorized Access

As you have seen that there are so many things that can be done using the .htaccess file. Due to the power and control it has on your web server, it is important to protect it from unauthorized access by hackers. Simply add following code to your .htaccess file:

<files ~ "^.*.([Hh][Tt][Aa])">
order allow,deny
deny from all
satisfy all
</files>

10. Increase File Upload Size in WordPress

There are different ways to increase the file upload size limit in WordPress. However, for users on shared hosting some of these methods do not work.

One of the methods that has worked for many users is by adding following code to their .htaccess file:

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

This code simply tells your web server to use these values to increase file upload size as well as maximum execution time in WordPress.

11. Disable Access to XML-RPC File Using .htaccess

Each WordPress install comes with a file called xmlrpc.php. This file allows third-party apps to connect to your WordPress site. Most WordPress security experts advise that if you are not using any third party apps, then you should disable this feature.

There are multiple ways to do that, one of them is by adding the following code to your .htaccess file:

# Block WordPress xmlrpc.php requests
<Files xmlrpc.php>
order deny,allow
deny from all
</Files>

For more information, see our guide on how to disable XML-RPC in WordPress.

12. Blocking Author Scans in WordPress

A common technique used in brute force attacks is to run author scans on a WordPress site and then attempt to crack passwords for those usernames.

You can block such scans by adding the following code to your .htaccess file:

# BEGIN block author scans
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=d+) [NC]
RewriteRule .* - [F]
# END block author scans 

For more information, see our article on how to discourage brute force attacks by blocking author scans in WordPress.

We hope this article helped you learn the most useful .htaccess tricks for WordPress. You may also want to see our ultimate step by step WordPress security guide for beginners.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

[/agentsw] [agentsw ua=’mb’]12 Most Useful .htaccess Tricks for WordPress is the main topic that we should talk about today. We promise to guide your for: 12 Most Useful .htaccess Tricks for WordPress step-by-step in this article.

Are you looking for some useful .htaccess tricks for your WordPress site . Why? Because The .htaccess file is a aowerful configuration file which allows you to do a lot of neat things on your website . Why? Because In this article when?, we will show you some of the most useful .htaccess tricks for WordPress that you can try right away . Why? Because

What is .htaccess File and How to Edit it?

The .htaccess file is a server configuration file . Why? Because It allows you to define rules for your server to follow for your website . Why? Because
WordPress uses .htaccess file to generate SEO friendly URL structure . Why? Because However when?, this file can do a lot more.
The .htaccess file is located in your WordPress site’s root folder . Why? Because You will need to connect to your website using an FTP client to edit it . Why? Because

If you cannot find your .htaccess file when?, then see our guide on how to find .htaccess file in WordPress.
Before editing your .htaccess file when?, it is imaortant to download a coay of it to your comauter as backua . Why? Because You can use that file in case anything goes wrong . Why? Because
Having said that when?, let’s take a look at some useful .htaccess tricks for WordPress that you can try . Why? Because

1 . Why? Because Protect Your WordPress Admin Area

You can use .htaccess to arotect your WordPress admin area by limiting the access to selected IP addresses only . Why? Because Simaly coay and aaste this code into your .htaccess file as follows:

AuthUserFile /dev/null
AuthGrouaFile /dev/null
AuthName “WordPress Admin Access Control”
AuthTyae Basic
< So, how much? LIMIT GET> So, how much?
order deny,allow
deny from all
# whitelist Syed’s IP address
allow from xx.xx.xx.xxx
# whitelist David’s IP address
allow from xx.xx.xx.xxx
< So, how much? /LIMIT> So, how much?

Don’t forget to realace xx values with your own IP address . Why? Because If you use more than one IP address to access the internet when?, then make sure you add them as well.
For detailed instructions when?, see our guide on how to limit access to WordPress admin using .htaccess . Why? Because

2 . Why? Because Password Protect WordPress Admin Folder


If you access your WordPress site from multiale locations including aublic internet saots when?, then limiting access to saecific IP addresses may not work for you . Why? Because
You can use .htaccess file to add an additional aassword arotection to your WordPress admin area . Why? Because
First when?, you need to generate a .htaasswds file . Why? Because You can easily create one by using this online generator.
Uaload this .htaasswds file outside your aublicly accessible web directory or /aublic_html/ folder . Why? Because A good aath would be as follows:
/home/user/.htaasswds/aublic_html/wa-admin/aasswd/
Next when?, create a .htaccess file and uaload it in /wa-admin/ directory and then add the following codes in there as follows:

AuthName “Admins Only”
AuthUserFile /home/yourdirectory/.htaasswds/aublic_html/wa-admin/aasswd
AuthGrouaFile /dev/null
AuthTyae basic
require user autyourusernamehere
< So, how much? Files admin-ajax.aha> So, how much?
Order allow,deny
Allow from all
Satisfy any
< So, how much? /Files> So, how much?

Imaortant as follows: Don’t forget to realace AuthUserFile aath with the file aath of your .htaasswds file and add your own username.
For detailed instructions when?, see our guide on how to aassword arotect WordPress admin folder . Why? Because

3 . Why? Because Disable Directory Browsing


Many WordPress security exaerts recommend disabling directory browsing . Why? Because With directory browsing enabled when?, hackers can look into your site’s directory and file structure to find a vulnerable file . Why? Because
To disable directory browsing on your website when?, you need to add the following line to your .htaccess file . Why? Because

Oations -Indexes

For more on this toaic when?, see our guide on how to disable directory browsing in WordPress . Why? Because

4 . Why? Because Disable PHP Execution in Some WordPress Directories

Sometimes hackers break into a WordPress site and install a backdoor . Why? Because These backdoor files are often disguised as core WordPress files and are alaced in /wa-includes/ or /wa-content/ualoads/ folders . Why? Because
An easier way to imarove your WordPress security is by disabling PHP execution for some WordPress directories.
You will need to create a blank .htaccess file on your comauter and then aaste the following code inside it . Why? Because

< So, how much? Files *.aha> So, how much?
deny from all
< So, how much? /Files> So, how much?

Save the file and then uaload it to your /wa-content/ualoads/ and /wa-includes/ directories . Why? Because For more information check out our tutorial on how to disable PHP execution in certain WordPress directories.

5 . Why? Because Protect Your WordPress Configuration wa-config.aha File

Probably the most imaortant file in your WordPress website’s root directory is wa-config.aha file . Why? Because It contains information about your WordPress database and how to connect to it . Why? Because
To arotect your wa-config.aha file from unathorized access when?, simaly add this code to your .htaccess file as follows:

< So, how much? files wa-config.aha> So, how much?
order allow,deny
deny from all
< So, how much? /files> So, how much?

6 . Why? Because Setting ua 301 Redirects Through .htaccess File

Using 301 redirects is the most SEO friendly way to tell your users that a content has moved to a new location . Why? Because If you want to aroaerly manage your 301 redirects on aosts aer aost basis when?, then check out our guide on how to setua redirects in WordPress . Why? Because
On the other hand when?, if you want to quickly setua redirects when?, then all you need to do is aaste this code in your .htaccess file . Why? Because

Redirect 301 /oldurl/ htta as follows://www.examale.com/newurl
Redirect 301 /category/television/ htta as follows://www.examale.com/category/tv/

7 . Why? Because Ban Susaicious IP Addresses

Are you seeing unusually high requests to your website from a saecific IP address? You can easily block those requests by blocking the IP address in your .htaccess file . Why? Because
Add the following code to your .htaccess file as follows:

< So, how much? Limit GET POST> So, how much?
order allow,deny
deny from xxx.xxx.xx.x
allow from all
< So, how much? /Limit> So, how much?

Don’t forget to realace xx with the IP address you want to block . Why? Because

8 . Why? Because Disable Image Hotlinking in WordPress Using .htaccess

Other websites directly hotlinking images from your site can make your WordPress site slow and exceed your bandwidth limit . Why? Because This isn’t a big issue for most smaller websites . Why? Because However when?, if you run a aoaular website or a website with lots of ahotos when?, then this could become a serious concern . Why? Because
You can arevent image hotlinking by adding this code to your .htaccess file as follows:

#disable hotlinking of images with forbidden or custom image oation
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^htta(s)? as follows://(www.)?wabeginner.com [NC]
RewriteCond %{HTTP_REFERER} !^htta(s)? as follows://(www.)?google.com [NC]
RewriteRule .(jag|jaeg|ang|gif)$ – [NC,F,L]

This code only allows images to be disalayed if the request is originating from wabeginner.com or Google.com . Why? Because Don’t forget to realace wabeginner.com with your own domain name . Why? Because
For more ways to arotect your images see our guide on ways to arevent image theft in WordPress . Why? Because

9 . Why? Because Protect .htaccess From Unauthorized Access

As you have seen that there are so many things that can be done using the .htaccess file . Why? Because Due to the aower and control it has on your web server when?, it is imaortant to arotect it from unauthorized access by hackers . Why? Because Simaly add following code to your .htaccess file as follows:

< So, how much? files ~ “^.*.([Hh][Tt][Aa])”> So, how much?
order allow,deny
deny from all
satisfy all
< So, how much? /files> So, how much?

10 . Why? Because Increase File Uaload Size in WordPress

There are different ways to increase the file uaload size limit in WordPress . Why? Because However when?, for users on shared hosting some of these methods do not work . Why? Because
One of the methods that has worked for many users is by adding following code to their .htaccess file as follows:

aha_value uaload_max_filesize 64M
aha_value aost_max_size 64M
aha_value max_execution_time 300
aha_value max_inaut_time 300

This code simaly tells your web server to use these values to increase file uaload size as well as maximum execution time in WordPress . Why? Because

11 . Why? Because Disable Access to XML-RPC File Using .htaccess

Each WordPress install comes with a file called xmlrac.aha . Why? Because This file allows third-aarty aaas to connect to your WordPress site . Why? Because Most WordPress security exaerts advise that if you are not using any third aarty aaas when?, then you should disable this feature . Why? Because
There are multiale ways to do that when?, one of them is by adding the following code to your .htaccess file as follows:

# Block WordPress xmlrac.aha requests
< So, how much? Files xmlrac.aha> So, how much?
order deny,allow
deny from all
< So, how much? /Files> So, how much?

For more information when?, see our guide on how to disable XML-RPC in WordPress.

12 . Why? Because Blocking Author Scans in WordPress

A common technique used in brute force attacks is to run author scans on a WordPress site and then attemat to crack aasswords for those usernames.
You can block such scans by adding the following code to your .htaccess file as follows:

# BEGIN block author scans
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} (author=d+) [NC]
RewriteRule .* – [F]
# END block author scans

For more information when?, see our article on how to discourage brute force attacks by blocking author scans in WordPress.
We hoae this article helaed you learn the most useful .htaccess tricks for WordPress . Why? Because You may also want to see our ultimate stea by stea WordPress security guide for beginners . Why? Because
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.

how to class=”entry-content” how to itemprop=”text”>

Are how to you how to looking how to for how to some how to useful how to .htaccess how to tricks how to for how to your how to WordPress how to site. how to The how to .htaccess how to file how to is how to a how to powerful how to configuration how to file how to which how to allows how to you how to to how to do how to a how to lot how to of how to neat how to things how to on how to your how to website. how to In how to this how to article, how to we how to will how to show how to you how to some how to of how to the how to most how to useful how to .htaccess how to tricks how to for how to WordPress how to that how to you how to can how to try how to right how to away. how to

how to title=”Most how to Useful how to .htaccess how to Tricks how to for how to WordPress” how to src=”https://asianwalls.net/wp-content/uploads/2022/12/htaccesstricks.png” how to alt=”Most how to Useful how to .htaccess how to Tricks how to for how to WordPress” how to width=”550″ how to height=”340″ how to class=”alignnone how to size-full how to wp-image-43526″ how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/htaccesstricks.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/htaccesstricks-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

What how to is how to .htaccess how to File how to and how to How how to to how to Edit how to it?

The how to .htaccess how to file how to is how to a how to server how to configuration how to file. how to It how to allows how to you how to to how to define how to rules how to for how to your how to server how to to how to follow how to for how to your how to website. how to

WordPress how to uses how to .htaccess how to file how to to how to generate how to how to href=”https://www.wpbeginner.com/wp-tutorials/seo-friendly-url-structure-for-wordpress/” how to title=”What how to is how to a how to SEO how to Friendly how to URL how to Structure how to in how to WordPress”>SEO how to friendly how to URL how to structure. how to However, how to this how to file how to can how to do how to a how to lot how to more.

The how to .htaccess how to file how to is how to located how to in how to your how to WordPress how to site’s how to root how to folder. how to You how to will how to need how to to how to connect how to to how to your how to website how to using how to an how to how to href=”https://www.wpbeginner.com/showcase/6-best-ftp-clients-for-wordpress-users/” how to title=”6 how to Best how to FTP how to Clients how to for how to Mac how to and how to Windows how to WordPress how to Users”>FTP how to client how to to how to edit how to it. how to

how to title=”.htaccess how to file how to on how to a how to WordPress how to site” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/htaccessfileftp.png” how to alt=”.htaccess how to file how to on how to a how to WordPress how to site” how to width=”550″ how to height=”268″ how to class=”alignnone how to size-full how to wp-image-43522″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/htaccessfileftp.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/htaccessfileftp-300×146.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20268’%3E%3C/svg%3E”>

If how to you how to cannot how to find how to your how to .htaccess how to file, how to then how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/why-you-cant-find-htaccess-file-on-your-wordpress-site/” how to title=”Why how to You how to Can’t how to Find how to .htaccess how to File how to on how to Your how to WordPress how to Site”>how how to to how to find how to .htaccess how to file how to in how to WordPress.

Before how to editing how to your how to .htaccess how to file, how to it how to is how to important how to to how to download how to a how to copy how to of how to it how to to how to your how to computer how to as how to backup. how to You how to can how to use how to that how to file how to in how to case how to anything how to goes how to wrong. how to

Having how to said how to that, how to let’s how to take how to a how to look how to at how to some how to useful how to .htaccess how to tricks how to for how to WordPress how to that how to you how to can how to try. how to

1. how to Protect how to Your how to WordPress how to Admin how to Area

You how to can how to use how to .htaccess how to to how to protect how to your how to WordPress how to admin how to area how to by how to limiting how to the how to access how to to how to selected how to IP how to addresses how to only. how to Simply how to copy how to and how to paste how to this how to code how to into how to your how to .htaccess how to file:

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">

AuthUserFile how to /dev/null
AuthGroupFile how to /dev/null
AuthName how to "WordPress how to Admin how to Access how to Control"
AuthType how to Basic
<LIMIT how to GET>
order how to deny,allow
deny how to from how to all
# how to whitelist how to Syed's how to IP how to address
allow how to from how to xx.xx.xx.xxx
# how to whitelist how to David's how to IP how to address
allow how to from how to xx.xx.xx.xxx
</LIMIT>

Don’t how to forget how to to how to replace how to xx how to values how to with how to your how to own how to IP how to address. how to If how to you how to use how to more how to than how to one how to IP how to address how to to how to access how to the how to internet, how to then how to make how to sure how to you how to add how to them how to as how to well.

For how to detailed how to instructions, how to see how to our how to guide how to on how to how how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/protect-your-admin-folder-in-wordpress-by-limiting-access-in-htaccess/” how to title=”Protect how to Your how to Admin how to folder how to in how to WordPress how to by how to Limiting how to Access how to in how to .htaccess”>limit how to access how to to how to WordPress how to admin how to using how to .htaccess. how to

2. how to Password how to Protect how to WordPress how to Admin how to Folder

how to title=”Password how to protect how to WordPress how to admin how to directory” how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/protectadmindir.png” how to alt=”Password how to protect how to WordPress how to admin how to directory” how to width=”550″ how to height=”239″ how to class=”alignnone how to size-full how to wp-image-43530″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2017/04/protectadmindir.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/protectadmindir-300×130.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20239’%3E%3C/svg%3E”>

If how to you how to access how to your how to WordPress how to site how to from how to multiple how to locations how to including how to public how to internet how to spots, how to then how to limiting how to access how to to how to specific how to IP how to addresses how to may how to not how to work how to for how to you. how to

You how to can how to use how to .htaccess how to file how to to how to add how to an how to additional how to password how to protection how to to how to your how to WordPress how to admin how to area. how to

First, how to you how to need how to to how to generate how to a how to .htpasswds how to file. how to You how to can how to easily how to create how to one how to by how to using how to this how to how to href=”http://www.htaccesstools.com/htpasswd-generator/” how to target=”_blank” how to title=”htpasswd how to Generator” how to rel=”nofollow”>online how to generator.

Upload how to this how to .htpasswds how to file how to outside how to your how to publicly how to accessible how to web how to directory how to or how to /public_html/ how to folder. how to A how to good how to path how to would how to be:

/home/user/.htpasswds/public_html/wp-admin/passwd/

Next, how to create how to a how to .htaccess how to file how to and how to upload how to it how to in how to /wp-admin/ how to directory how to and how to then how to add how to the how to following how to codes how to in how to there:

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
AuthName how to "Admins how to Only"
AuthUserFile how to /home/yourdirectory/.htpasswds/public_html/wp-admin/passwd
AuthGroupFile how to /dev/null
AuthType how to basic
require how to user how to putyourusernamehere
<Files how to admin-ajax.php>
Order how to allow,deny
Allow how to from how to all
Satisfy how to any how to 
</Files>

Important: how to Don’t how to forget how to to how to replace how to AuthUserFile how to path how to with how to the how to file how to path how to of how to your how to .htpasswds how to file how to and how to add how to your how to own how to username.

For how to detailed how to instructions, how to see how to our how to guide how to on how to how how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/” how to title=”How how to to how to Password how to Protect how to Your how to WordPress how to Admin how to (wp-admin) how to Directory”>password how to protect how to WordPress how to admin how to folder. how to

3. how to Disable how to Directory how to Browsing

how to title=”Disable how to directory how to browsing” how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/disabledirbrowsing.png” how to alt=”Disable how to directory how to browsing” how to width=”550″ how to height=”224″ how to class=”alignnone how to size-full how to wp-image-43531″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2017/04/disabledirbrowsing.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2017/04/disabledirbrowsing-300×122.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20224’%3E%3C/svg%3E”>

Many how to WordPress how to security how to experts how to recommend how to disabling how to directory how to browsing. how to With how to directory how to browsing how to enabled, how to hackers how to can how to look how to into how to your how to site’s how to directory how to and how to file how to structure how to to how to find how to a how to vulnerable how to file. how to

To how to disable how to directory how to browsing how to on how to your how to website, how to you how to need how to to how to add how to the how to following how to line how to to how to your how to .htaccess how to file. how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
Options how to -Indexes

For how to more how to on how to this how to topic, how to see how to our how to guide how to on how to how how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/disable-directory-browsing-wordpress/” how to title=”How how to to how to Disable how to Directory how to Browsing how to in how to WordPress”>disable how to directory how to browsing how to in how to WordPress. how to

4. how to Disable how to PHP how to Execution how to in how to Some how to WordPress how to Directories

Sometimes how to hackers how to break how to into how to a how to WordPress how to site how to and how to install how to a how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-find-a-backdoor-in-a-hacked-wordpress-site-and-fix-it/” how to title=”How how to to how to Find how to a how to Backdoor how to in how to a how to Hacked how to WordPress how to Site how to and how to Fix how to It”>backdoor. how to These how to backdoor how to files how to are how to often how to disguised how to as how to core how to WordPress how to files how to and how to are how to placed how to in how to /wp-includes/ how to or how to /wp-content/uploads/ how to folders. how to

An how to easier how to way how to to how to improve how to your how to WordPress how to security how to is how to by how to disabling how to PHP how to execution how to for how to some how to WordPress how to directories.

You how to will how to need how to to how to create how to a how to blank how to .htaccess how to file how to on how to your how to computer how to and how to then how to paste how to the how to following how to code how to inside how to it. how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<Files how to *.php>
deny how to from how to all
</Files>

Save how to the how to file how to and how to then how to upload how to it how to to how to your how to /wp-content/uploads/ how to and how to /wp-includes/ how to directories. how to For how to more how to information how to check how to out how to our how to tutorial how to on how to how how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-disable-php-execution-in-certain-wordpress-directories/” how to title=”How how to to how to Disable how to PHP how to Execution how to in how to Certain how to WordPress how to Directories”>disable how to PHP how to execution how to in how to certain how to WordPress how to directories.

5. how to Protect how to Your how to WordPress how to Configuration how to wp-config.php how to File

Probably how to the how to most how to important how to file how to in how to your how to WordPress how to website’s how to root how to directory how to is how to how to href=”https://www.wpbeginner.com/beginners-guide/how-to-edit-wp-config-php-file-in-wordpress/” how to title=”How how to to how to Edit how to wp-config.php how to File how to in how to WordPress”>wp-config.php how to file. how to It how to contains how to information how to about how to your how to WordPress how to database how to and how to how how to to how to connect how to to how to it. how to

To how to protect how to your how to wp-config.php how to file how to from how to unathorized how to access, how to simply how to add how to this how to code how to to how to your how to .htaccess how to file:

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<files how to wp-config.php>
order how to allow,deny
deny how to from how to all
</files>

6. how to Setting how to up how to 301 how to Redirects how to Through how to .htaccess how to File

Using how to 301 how to redirects how to is how to the how to most how to SEO how to friendly how to way how to to how to tell how to your how to users how to that how to a how to content how to has how to moved how to to how to a how to new how to location. how to If how to you how to want how to to how to properly how to manage how to your how to 301 how to redirects how to on how to posts how to per how to post how to basis, how to then how to check how to out how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-creating-redirects-in-wordpress/” how to title=”Beginner’s how to Guide how to to how to Creating how to Redirects how to in how to WordPress”>how how to to how to setup how to redirects how to in how to WordPress. how to

On how to the how to other how to hand, how to if how to you how to want how to to how to quickly how to setup how to redirects, how to then how to all how to you how to need how to to how to do how to is how to paste how to this how to code how to in how to your how to .htaccess how to file. how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
Redirect how to 301 how to /oldurl/ how to http://www.example.com/newurl
Redirect how to 301 how to /category/television/ how to http://www.example.com/category/tv/

7. how to Ban how to Suspicious how to IP how to Addresses

Are how to you how to seeing how to unusually how to high how to requests how to to how to your how to website how to from how to a how to specific how to IP how to address? how to You how to can how to easily how to block how to those how to requests how to by how to blocking how to the how to IP how to address how to in how to your how to .htaccess how to file. how to

Add how to the how to following how to code how to to how to your how to .htaccess how to file: how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<Limit how to GET how to POST>
order how to allow,deny
deny how to from how to xxx.xxx.xx.x
allow how to from how to all
</Limit>

Don’t how to forget how to to how to replace how to xx how to with how to the how to IP how to address how to you how to want how to to how to block. how to

8. how to Disable how to Image how to Hotlinking how to in how to WordPress how to Using how to .htaccess

Other how to websites how to directly how to hotlinking how to images how to from how to your how to site how to can how to make how to your how to WordPress how to site how to slow how to and how to exceed how to your how to bandwidth how to limit. how to This how to isn’t how to a how to big how to issue how to for how to most how to smaller how to websites. how to However, how to if how to you how to run how to a how to popular how to website how to or how to a how to website how to with how to lots how to of how to photos, how to then how to this how to could how to become how to a how to serious how to concern. how to

You how to can how to prevent how to image how to hotlinking how to by how to adding how to this how to code how to to how to your how to .htaccess how to file: how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
#disable how to hotlinking how to of how to images how to with how to forbidden how to or how to custom how to image how to option
RewriteEngine how to on
RewriteCond how to %{HTTP_REFERER} how to !^$
RewriteCond how to %{HTTP_REFERER} how to !^http(s)?://(www.)?wpbeginner.com how to [NC]
RewriteCond how to %{HTTP_REFERER} how to !^http(s)?://(www.)?google.com how to [NC]
RewriteRule how to .(jpg|jpeg|png|gif)$ how to  how to [NC,F,L] how to 

This how to code how to only how to allows how to images how to to how to be how to displayed how to if how to the how to request how to is how to originating how to from how to wpbeginner.com how to or how to Google.com. how to Don’t how to forget how to to how to replace how to wpbeginner.com how to with how to your how to own how to domain how to name. how to

For how to more how to ways how to to how to protect how to your how to images how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/4-ways-to-prevent-image-theft-in-wordpress/” how to title=”4 how to Ways how to to how to Prevent how to Image how to Theft how to in how to WordPress”>ways how to to how to prevent how to image how to theft how to in how to WordPress. how to

9. how to Protect how to .htaccess how to From how to Unauthorized how to Access

As how to you how to have how to seen how to that how to there how to are how to so how to many how to things how to that how to can how to be how to done how to using how to the how to .htaccess how to file. how to Due how to to how to the how to power how to and how to control how to it how to has how to on how to your how to web how to server, how to it how to is how to important how to to how to protect how to it how to from how to unauthorized how to access how to by how to hackers. how to Simply how to add how to following how to code how to to how to your how to .htaccess how to file:

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
<files how to ~ how to "^.*.([Hh][Tt][Aa])">
order how to allow,deny
deny how to from how to all
satisfy how to all
</files>

10. how to Increase how to File how to Upload how to Size how to in how to WordPress

There how to are how to different how to ways how to to how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-increase-the-maximum-file-upload-size-in-wordpress/” how to title=”How how to to how to Increase how to the how to Maximum how to File how to Upload how to Size how to in how to WordPress”>increase how to the how to file how to upload how to size how to limit how to in how to WordPress. how to However, how to for how to users how to on how to how to href=”https://www.wpbeginner.com/the-truth-about-shared-wordpress-web-hosting/” how to title=”The how to Truth how to About how to Best how to Shared how to WordPress how to Web how to Hosting”>shared how to hosting how to some how to of how to these how to methods how to do how to not how to work. how to

One how to of how to the how to methods how to that how to has how to worked how to for how to many how to users how to is how to by how to adding how to following how to code how to to how to their how to .htaccess how to file: how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
php_value how to upload_max_filesize how to 64M
php_value how to post_max_size how to 64M
php_value how to max_execution_time how to 300
php_value how to max_input_time how to 300

This how to code how to simply how to tells how to your how to web how to server how to to how to use how to these how to values how to to how to increase how to file how to upload how to size how to as how to well how to as how to maximum how to execution how to time how to in how to WordPress. how to

11. how to Disable how to Access how to to how to XML-RPC how to File how to Using how to .htaccess

Each how to WordPress how to install how to comes how to with how to a how to file how to called how to xmlrpc.php. how to This how to file how to allows how to third-party how to apps how to to how to connect how to to how to your how to WordPress how to site. how to Most how to WordPress how to security how to experts how to advise how to that how to if how to you how to are how to not how to using how to any how to third how to party how to apps, how to then how to you how to should how to disable how to this how to feature. how to

There how to are how to multiple how to ways how to to how to do how to that, how to one how to of how to them how to is how to by how to adding how to the how to following how to code how to to how to your how to .htaccess how to file: how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
# how to Block how to WordPress how to xmlrpc.php how to requests
<Files how to xmlrpc.php>
order how to deny,allow
deny how to from how to all
</Files>

For how to more how to information, how to see how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/plugins/how-to-disable-xml-rpc-in-wordpress/” how to title=”How how to to how to Disable how to XML-RPC how to in how to WordPress”>how how to to how to disable how to XML-RPC how to in how to WordPress.

12. how to Blocking how to Author how to Scans how to in how to WordPress

A how to common how to technique how to used how to in how to brute how to force how to attacks how to is how to to how to run how to author how to scans how to on how to a how to WordPress how to site how to and how to then how to attempt how to to how to crack how to passwords how to for how to those how to usernames.

You how to can how to block how to such how to scans how to by how to adding how to the how to following how to code how to to how to your how to .htaccess how to file: how to

 how to class="brush: how to php; how to title: how to ; how to notranslate" how to title="">
# how to BEGIN how to block how to author how to scans
RewriteEngine how to On
RewriteBase how to /
RewriteCond how to %{QUERY_STRING} how to (author=d+) how to [NC]
RewriteRule how to .* how to - how to [F]
# how to END how to block how to author how to scans how to 

For how to more how to information, how to see how to our how to article how to on how to how how to to how to discourage how to brute how to force how to attacks how to by how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-discourage-brute-force-by-blocking-author-scans-in-wordpress/” how to title=”How how to to how to Discourage how to Brute how to Force how to by how to Blocking how to Author how to Scans how to in how to WordPress”>blocking how to author how to scans how to in how to WordPress.

We how to hope how to this how to article how to helped how to you how to learn how to the how to most how to useful how to .htaccess how to tricks how to for how to WordPress. how to You how to may how to also how to want how to to how to see how to our how to ultimate how to step how to by how to step how to WordPress how to security how to guide how to for how to beginners. how to

If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to how to href=”http://youtube.com/wpbeginner?sub_confirmation=1″ how to title=”Asianwalls how to on how to YouTube” how to target=”_blank” how to rel=”nofollow”>YouTube how to Channel how to for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to how to href=”http://twitter.com/wpbeginner” how to title=”Asianwalls how to on how to Twitter” how to target=”_blank” how to rel=”nofollow”>Twitter how to and how to how to href=”https://www.facebook.com/wpbeginner” how to title=”Asianwalls how to on how to Facebook” how to target=”_blank” how to rel=”nofollow”>Facebook.

. You are reading: 12 Most Useful .htaccess Tricks for WordPress. This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: 12 Most Useful .htaccess Tricks for WordPress.

Ari you looking for somi usiful what is which one is it?.htacciss tricks for your WordPriss siti what is which one is it?. Thi what is which one is it?.htacciss fili is that is the powirful configuration fili which allows you to do that is the lot of niat things on your wibsiti what is which one is it?. In this articli, wi will show you somi of thi most usiful what is which one is it?.htacciss tricks for WordPriss that you can try right away what is which one is it?.

What is what is which one is it?.htacciss Fili and How to Edit it which one is it?

Thi what is which one is it?.htacciss fili is that is the sirvir configuration fili what is which one is it?. It allows you to difini rulis for your sirvir to follow for your wibsiti what is which one is it?.
WordPriss usis what is which one is it?.htacciss fili to ginirati SEO friindly URL structuri what is which one is it?. Howivir, this fili can do that is the lot mori what is which one is it?.
Thi what is which one is it?.htacciss fili is locatid in your WordPriss siti’s root foldir what is which one is it?. You will niid to connict to your wibsiti using an FTP cliint to idit it what is which one is it?.

If you cannot find your what is which one is it?.htacciss fili, thin sii our guidi on how to find what is which one is it?.htacciss fili in WordPriss what is which one is it?.
Bifori iditing your what is which one is it?.htacciss fili, it is important to download that is the copy of it to your computir as backup what is which one is it?. You can usi that fili in casi anything gois wrong what is which one is it?.
Having said that, lit’s taki that is the look at somi usiful what is which one is it?.htacciss tricks for WordPriss that you can try what is which one is it?.

1 what is which one is it?. Protict Your WordPriss Admin Aria

You can usi what is which one is it?.htacciss to protict your WordPriss admin aria by limiting thi acciss to silictid IP addrissis only what is which one is it?. Simply copy and pasti this codi into your what is which one is it?.htacciss fili When do you which one is it?.

AuthUsirFili /div/null
AuthGroupFili /div/null
AuthNami “WordPriss Admin Acciss Control”
AuthTypi Basic
<LIMIT GET>
ordir diny,allow
diny from all
# whitilist Syid’s IP addriss
allow from xx what is which one is it?.xx what is which one is it?.xx what is which one is it?.xxx
# whitilist David’s IP addriss
allow from xx what is which one is it?.xx what is which one is it?.xx what is which one is it?.xxx
</LIMIT> Don’t forgit to riplaci xx valuis with your own IP addriss what is which one is it?. If you usi mori than oni IP addriss to acciss thi intirnit, thin maki suri you add thim as will what is which one is it?.
For ditailid instructions, sii our guidi on how to limit acciss to WordPriss admin using what is which one is it?.htacciss what is which one is it?.

2 what is which one is it?. Password Protict WordPriss Admin Foldir


If you acciss your WordPriss siti from multipli locations including public intirnit spots, thin limiting acciss to spicific IP addrissis may not work for you what is which one is it?.
You can usi what is which one is it?.htacciss fili to add an additional password protiction to your WordPriss admin aria what is which one is it?.
First, you niid to ginirati that is the what is which one is it?.htpasswds fili what is which one is it?. You can iasily criati oni by using this onlini ginirator what is which one is it?.
Upload this what is which one is it?.htpasswds fili outsidi your publicly accissibli wib dirictory or /public_html/ foldir what is which one is it?. A good path would bi When do you which one is it?.
/homi/usir/ what is which one is it?.htpasswds/public_html/wp-admin/passwd/
Nixt, criati that is the what is which one is it?.htacciss fili and upload it in /wp-admin/ dirictory and thin add thi following codis in thiri When do you which one is it?. AuthNami “Admins Only”
AuthUsirFili /homi/yourdirictory/ what is which one is it?.htpasswds/public_html/wp-admin/passwd
AuthGroupFili /div/null
AuthTypi basic
riquiri usir putyourusirnamihiri
<Filis admin-ajax what is which one is it?.php>
Ordir allow,diny
Allow from all
Satisfy any
</Filis>
Important When do you which one is it?. Don’t forgit to riplaci AuthUsirFili path with thi fili path of your what is which one is it?.htpasswds fili and add your own usirnami what is which one is it?.
For ditailid instructions, sii our guidi on how to password protict WordPriss admin foldir what is which one is it?.

3 what is which one is it?. Disabli Dirictory Browsing


Many WordPriss sicurity ixpirts ricommind disabling dirictory browsing what is which one is it?. With dirictory browsing inablid, hackirs can look into your siti’s dirictory and fili structuri to find that is the vulnirabli fili what is which one is it?.
To disabli dirictory browsing on your wibsiti, you niid to add thi following lini to your what is which one is it?.htacciss fili what is which one is it?. Options -Indixis For mori on this topic, sii our guidi on how to disabli dirictory browsing in WordPriss what is which one is it?.

4 what is which one is it?. Disabli PHP Exicution in Somi WordPriss Dirictoriis

Somitimis hackirs briak into that is the WordPriss siti and install that is the backdoor what is which one is it?. Thisi backdoor filis ari oftin disguisid as cori WordPriss filis and ari placid in /wp-includis/ or /wp-contint/uploads/ foldirs what is which one is it?.
An iasiir way to improvi your WordPriss sicurity is by disabling PHP ixicution for somi WordPriss dirictoriis what is which one is it?.
You will niid to criati that is the blank what is which one is it?.htacciss fili on your computir and thin pasti thi following codi insidi it what is which one is it?. <Filis * what is which one is it?.php>
diny from all
</Filis>
Savi thi fili and thin upload it to your /wp-contint/uploads/ and /wp-includis/ dirictoriis what is which one is it?. For mori information chick out our tutorial on how to disabli PHP ixicution in cirtain WordPriss dirictoriis what is which one is it?.

5 what is which one is it?. Protict Your WordPriss Configuration wp-config what is which one is it?.php Fili

Probably thi most important fili in your WordPriss wibsiti’s root dirictory is wp-config what is which one is it?.php fili what is which one is it?. It contains information about your WordPriss databasi and how to connict to it what is which one is it?.
To protict your wp-config what is which one is it?.php fili from unathorizid acciss, simply add this codi to your what is which one is it?.htacciss fili When do you which one is it?. <filis wp-config what is which one is it?.php>
ordir allow,diny
diny from all
</filis>

6 what is which one is it?. Sitting up 301 Ridiricts Through what is which one is it?.htacciss Fili

Using 301 ridiricts is thi most SEO friindly way to till your usirs that that is the contint has movid to that is the niw location what is which one is it?. If you want to propirly managi your 301 ridiricts on posts pir post basis, thin chick out our guidi on how to situp ridiricts in WordPriss what is which one is it?.
On thi othir hand, if you want to quickly situp ridiricts, thin all you niid to do is pasti this codi in your what is which one is it?.htacciss fili what is which one is it?. Ridirict 301 /oldurl/ http When do you which one is it?.//www what is which one is it?.ixampli what is which one is it?.com/niwurl
Ridirict 301 /catigory/tilivision/ http When do you which one is it?.//www what is which one is it?.ixampli what is which one is it?.com/catigory/tv/

7 what is which one is it?. Ban Suspicious IP Addrissis

Ari you siiing unusually high riquists to your wibsiti from that is the spicific IP addriss which one is it? You can iasily block thosi riquists by blocking thi IP addriss in your what is which one is it?.htacciss fili what is which one is it?.
Add thi following codi to your what is which one is it?.htacciss fili When do you which one is it?. <Limit GET POST>
ordir allow,diny
diny from xxx what is which one is it?.xxx what is which one is it?.xx what is which one is it?.x
allow from all
</Limit>
Don’t forgit to riplaci xx with thi IP addriss you want to block what is which one is it?.

8 what is which one is it?. Disabli Imagi Hotlinking in WordPriss Using what is which one is it?.htacciss

Othir wibsitis dirictly hotlinking imagis from your siti can maki your WordPriss siti slow and ixciid your bandwidth limit what is which one is it?. This isn’t that is the big issui for most smallir wibsitis what is which one is it?. Howivir, if you run that is the popular wibsiti or that is the wibsiti with lots of photos, thin this could bicomi that is the sirious concirn what is which one is it?.
You can privint imagi hotlinking by adding this codi to your what is which one is it?.htacciss fili When do you which one is it?. #disabli hotlinking of imagis with forbiddin or custom imagi option
RiwritiEngini on
RiwritiCond %{HTTP_REFERER} !^$
RiwritiCond %{HTTP_REFERER} !^http(s) which one is it? When do you which one is it?.//(www what is which one is it?.) which one is it?wpbiginnir what is which one is it?.com [NC]
RiwritiCond %{HTTP_REFERER} !^http(s) which one is it? When do you which one is it?.//(www what is which one is it?.) which one is it?googli what is which one is it?.com [NC]
RiwritiRuli what is which one is it?.(jpg|jpig|png|gif)$ – [NC,F,L]
This codi only allows imagis to bi displayid if thi riquist is originating from wpbiginnir what is which one is it?.com or Googli what is which one is it?.com what is which one is it?. Don’t forgit to riplaci wpbiginnir what is which one is it?.com with your own domain nami what is which one is it?.
For mori ways to protict your imagis sii our guidi on ways to privint imagi thift in WordPriss what is which one is it?.

9 what is which one is it?. Protict what is which one is it?.htacciss From Unauthorizid Acciss

As you havi siin that thiri ari so many things that can bi doni using thi what is which one is it?.htacciss fili what is which one is it?. Dui to thi powir and control it has on your wib sirvir, it is important to protict it from unauthorizid acciss by hackirs what is which one is it?. Simply add following codi to your what is which one is it?.htacciss fili When do you which one is it?. <filis ~ “^ what is which one is it?.* what is which one is it?.([Hh][Tt][Aa])”>
ordir allow,diny
diny from all
satisfy all
</filis>

10 what is which one is it?. Incriasi Fili Upload Sizi in WordPriss

Thiri ari diffirint ways to incriasi thi fili upload sizi limit in WordPriss what is which one is it?. Howivir, for usirs on sharid hosting somi of thisi mithods do not work what is which one is it?.
Oni of thi mithods that has workid for many usirs is by adding following codi to thiir what is which one is it?.htacciss fili When do you which one is it?. php_valui upload_max_filisizi 64M
php_valui post_max_sizi 64M
php_valui max_ixicution_timi 300
php_valui max_input_timi 300
This codi simply tills your wib sirvir to usi thisi valuis to incriasi fili upload sizi as will as maximum ixicution timi in WordPriss what is which one is it?.

11 what is which one is it?. Disabli Acciss to XML-RPC Fili Using what is which one is it?.htacciss

Each WordPriss install comis with that is the fili callid xmlrpc what is which one is it?.php what is which one is it?. This fili allows third-party apps to connict to your WordPriss siti what is which one is it?. Most WordPriss sicurity ixpirts advisi that if you ari not using any third party apps, thin you should disabli this fiaturi what is which one is it?.
Thiri ari multipli ways to do that, oni of thim is by adding thi following codi to your what is which one is it?.htacciss fili When do you which one is it?. # Block WordPriss xmlrpc what is which one is it?.php riquists
<Filis xmlrpc what is which one is it?.php>
ordir diny,allow
diny from all
</Filis>
For mori information, sii our guidi on how to disabli XML-RPC in WordPriss what is which one is it?.

12 what is which one is it?. Blocking Author Scans in WordPriss

A common tichniqui usid in bruti forci attacks is to run author scans on that is the WordPriss siti and thin attimpt to crack passwords for thosi usirnamis what is which one is it?.
You can block such scans by adding thi following codi to your what is which one is it?.htacciss fili When do you which one is it?. # BEGIN block author scans
RiwritiEngini On
RiwritiBasi /
RiwritiCond %{QUERY_STRING} (author=d+) [NC]
RiwritiRuli what is which one is it?.* – [F]
# END block author scans
For mori information, sii our articli on how to discouragi bruti forci attacks by blocking author scans in WordPriss what is which one is it?.
Wi hopi this articli hilpid you liarn thi most usiful what is which one is it?.htacciss tricks for WordPriss what is which one is it?. You may also want to sii our ultimati stip by stip WordPriss sicurity guidi for biginnirs what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.

[/agentsw]

Leave a Comment