Title: SAR One Click Security
Author: Samuel Aguilera
Published: <strong>14 أغسطس، 2014</strong>
Last modified: 3 مارس، 2025

---

البحث عن الإضافات

![](https://ps.w.org/sar-one-click-security/assets/banner-772x250.png?rev=966024)

![](https://ps.w.org/sar-one-click-security/assets/icon-128x128.png?rev=1359316)

# SAR One Click Security

 بواسطة [Samuel Aguilera](https://profiles.wordpress.org/samuelaguilera/)

[تنزيل](https://downloads.wordpress.org/plugin/sar-one-click-security.1.3.zip)

 * [تفاصيل](https://ar.wordpress.org/plugins/sar-one-click-security/#description)
 * [المراجعات](https://ar.wordpress.org/plugins/sar-one-click-security/#reviews)
 *  [التنصيب](https://ar.wordpress.org/plugins/sar-one-click-security/#installation)
 * [التطوير](https://ar.wordpress.org/plugins/sar-one-click-security/#developers)

 [الدعم](https://wordpress.org/support/plugin/sar-one-click-security/)

## الوصف

There’s a lot of WordPress security plugins with many many options and pages to 
setup. And that is fine if you know what to do.
 But most of the times, you don’t
need so much or simply you’re not sure about what to set or not.

This plugin adds some extra security to your WordPress with only one click. **No
options page, just activate it!**

#### ملامح

Like many other security plugins SAR One Click Security adds well known .htaccess
rules, but only the ones probed to be safe to use in almost any type of site (including
WooCommerce stores), to protect your WordPress from common attacks. This allows 
you to have a safer WordPress without worries about what protection you should be
using.

 * Turn off ServerSignature directive, that may leak information about your web 
   server.
 * Turn off directory listing, avoiding bad configured hostings to leak your files.
 * Blocks public access (from web) to following files that may leak information 
   about your WordPress install: .htaccess, license.txt, readme.html, wp-config.
   php, wp-config-sample.php, install.php
 * Blocks access to wp-login.php to dummy bots trying to register in WordPress sites
   that have registration disabled.
 * Blocks requests looking for timthumb.php, reducing server load caused by bots
   trying to find it. (*)
 * Blocks TRACE and TRACK request methods, preventing XST attacks.
 * Blocks direct posting to wp-comments-post.php (most spammers do this) and access
   with blank User Agent, reducing spam comments a lot and also server load.
 * Blocks direct access to PHP files in wp-content directory (this includes subdirectories
   like plugins or themes). Protecting you from a huge number of 0day exploits.
 * Blocks direct POST to wp-login.php and access with blank User Agent, preventing
   most brute-force attacks and reducing server load.
 * Blocks access to .txt files under any plugin/theme directory to prevent scans
   for installed plugins/themes.
 * Blocks any query string trying to get a copy of the wp-config.php file.
 * Blocks gf_page=upload query string argument, this was deprecated in Gravity Forms
   on May 2015, if your copy of Gravity Forms still uses it, update now!
 * Removes version information from page headers. This includes not only the page
   header (html or xhtml) but also feed headers (rss, rss2, atom, rdf) and opml 
   comments. Only the version number is removed, not the entire generator information.

(*) If your theme uses TimThumb, you can disable that blocking rule, check FAQ before
installing the plugin to see how.

#### Requirements

 * WordPress 3.9.2 or higher. (Works with WordPress network/multisite installation).
 * Apache 2.4.x web server

It has been tested in many servers including large providers like HostGator, Godaddy
and 1&1 with optimal results, and it will work fine in any decent hosting service(
that allows you to set options from .htaccess files).

Anyway, if you get any problem after activating the plugin, check FAQ for instructions
on how to manually uninstall it.

If you’re not sure of which server is your hosting company using or if they allow
to use custom .htaccess rules, I would recommend you to contact with your host support**
before** installing the plugin.

#### الاستخدام

To apply above mentioned security rules simply install and activate the plugin, 
no options page, no user setup!

If you need to remove the security rules for some reason, simply deactivate the 
plugin. If you want to add them again, activate the plugin again, that easy 😉

And remember, **if your theme uses TimThumb, check FAQ before installing the plugin**.

## التنصيب

 * Extract the zip file and just drop the contents in the `wp-content/plugins/` 
   directory of your WordPress installation (or install it directly from your dashboard)
   and then activate it from Plugins page.

## الأسئلة المتكررّة

### Can I use this plugin together with Wordfence Security or any other security plugin?

If you use a plugin like Wordfence Security, or any other security plugin that gives
you similar functionality (these that writes rules to .htaccess), you should not
be using this plugin or another security plugin. **Using more than one security 
plugin at once can give you unexpected results**.

Anyway, SAR One Click Security is a pretty friendly plugin, it adds his security
rules without interfering in any other existing content in your .htacces file. In
fact I’m using SAR One Click Security + All In One WP Security & Firewall in some
sites that I manage.

So technically you can do it if you know what you’re doing, but if you do you’re
at your own risk. No support for problems due to the use of another security plugin
together with this one.

### I already have some custom rules in my .htaccess, will the plugin remove them?

The plugin doesn’t touch any of the current content of your .htaccess file, it only
adds **its own rules** when you activate it, and removes **its own rules** when 
you deactivate it.

### I’m not sure of what server is running my hosting, can I install this to try?

Yes. If you install this plugin in another server rather than Apache (nginx, IIS,
etc…) the plugin only will show a notice in your WordPress admin dashboard, no modifications
will be made.

### My theme uses TimThumb script, can I use this plugin?

Yes. But **you must** add the following line to your wp-config.php file **BEFORE**
activating the plugin.

    ```
    define('SAR_ALLOW_TIMTHUMB', '');
    ```

That will allow you to use all features of the plugin excerpt for the TimThumb blocking
rule.

If you activated the plugin before inserting the above line in your wp-config.php
file, simply deactivate/activate the plugin to allow access for timthumb.php and
thumb.php (another file name used for TimThumb).

And if you want to turn off TimThumb support, simply remove the previous mentioned
line and deactivate/activate the plugin.

### After activating the plugin I get an error 500 page, what can I do?

If you get an error 500 page after activating the plugin this can be for one of 
the following reasons:

A) Your hosting provider doesn’t allow you to set some (or any) settings from your.
htaccess

B) Your site is hosted on an Apache 2.2.x server. This branch of Apache reached 
its EOL on 2018-01-01 and therefore it’s not supported anymore. If your hosting 
is still server your site with such an old version of Apache, I would recommend 
you to move to a better hosting ASAP.

In any case, you can manually uninstall the plugin’s .htacces rules by opening your
favorite FTP client and removing all content between **# BEGIN SAR One Click Security**
and **# END SAR One Click Security** in your .htaccess file located in the root 
directory of your WordPress installation.
 And doing the same in the .htaccess file
located in the wp-content dir (or deleting the file if no more content on it).

## المراجعات

![](https://secure.gravatar.com/avatar/fd1d58ce44ef22dd5be33ba7dff3235101a6ab0102776b77dda7ccbd30c23405?
s=60&d=retro&r=g)

### 󠀁[Still Works, still updated.](https://wordpress.org/support/topic/still-works-still-updated/)󠁿

 [Curtis](https://profiles.wordpress.org/salsafire/) 25 يونيو، 2020

This plugin needs more love. The end.

![](https://secure.gravatar.com/avatar/42c14c160d70f60ee5c54f2f9675328426f18554e8ce1374796e765ed2dbebf4?
s=60&d=retro&r=g)

### 󠀁[6 Stars](https://wordpress.org/support/topic/6-stars-5/)󠁿

 [salamzaban](https://profiles.wordpress.org/salamzaban/) 12 سبتمبر، 2017

6 Stars

![](https://secure.gravatar.com/avatar/009476470eae118271cb209adfaaecd9f6d6c8bc74e81aa88c654c6a8caf9640?
s=60&d=retro&r=g)

### 󠀁[Great and useful](https://wordpress.org/support/topic/great-and-useful-6/)󠁿

 [wplike75](https://profiles.wordpress.org/wplike75/) 19 نوفمبر، 2016

Great and useful plugins, thank you for making this, and for free.

 [ إقرأ جميع المراجعات 7 ](https://wordpress.org/support/plugin/sar-one-click-security/reviews/)

## المساهمون والمطوّرون

“SAR One Click Security” هو برنامج مفتوح المصدر. وقد ساهم هؤلاء الأشخاص بالأسفل 
في هذه الإضافة.

المساهمون

 *   [ Samuel Aguilera ](https://profiles.wordpress.org/samuelaguilera/)

[ترجمة ”SAR One Click Security“ إلى لغتك.](https://translate.wordpress.org/projects/wp-plugins/sar-one-click-security)

### مُهتم بالتطوير؟

[تصفّح الشفرة](https://plugins.trac.wordpress.org/browser/sar-one-click-security/)،
تحقق من [مستودع SVN](https://plugins.svn.wordpress.org/sar-one-click-security/)،
أو الاشتراك في [سجل التطوير](https://plugins.trac.wordpress.org/log/sar-one-click-security/)
بواسطة [RSS](https://plugins.trac.wordpress.org/log/sar-one-click-security/?limit=100&mode=stop_on_copy&format=rss).

## سجل التغييرات

#### 1.3

 * Removed support for Apache 2.2.x branch that [reached EOL on 2018-01-01](https://httpd.apache.org/#apache-httpd-22-end-of-life-2018-01-01).
   Only Apache 2.4.x branch is supported from now on.
 * Removed support for SAR_APACHE24_SYNTAX constant. Apache 2.4 syntax is now used
   by default.
 * Improved code syntax to make it 100% compliant with WordPress Coding Standards.
   This doesn’t represent any change in the plugin functionality, it’s just cosmetic.

#### 1.2.2

 * Added rule to block scans done with WPScan when using the default user-agent.

#### 1.2.1

 * Fixed PHP notice for $wp_domain_not_supported var.

#### 1.2

 * Added blocking of any query string trying to get a copy of the wp-config.php 
   file.
 * Added blocking of gf_page=upload query string, this was deprecated in Gravity
   Forms on May 2015, if your copy of Gravity Forms still uses it, update now!
 * Changed some rules from redirecting to localhost IP to triggering a forbidden(
   403) error.
 * Added blocking access to .txt files under any plugin/theme directory to prevent
   scans for installed plugins/themes.

#### 1.1.7

 * Added support for new Apache 2.4.x syntax for deny commands
 * Added SAR_APACHE24_SYNTAX constant to allow the use of Apache 2.4.x syntax on
   servers where the Apache version string is not available due to server configuration
 * Modified FilesMatch to prevent access to install.php
 * Added old extensions for PHP to the rule that blocks direct access to PHP files
   in wp-content directory to cover servers that still allows these extensions (
   crappy shared hosting mainly)
 * Prevent .htaccess rules being created in a no supported server on plugin updates(
   although it makes not sense to keep it activated if you’re not running Apache)
 * Added removing version information from page headers. This includes not only 
   the page header (html or xtml) but also feed headers (rss, rss2, atom, rdf) and
   opml comments. Only the version number is removed, not the entire generator information.
 * Some minor code cleanup

#### 1.1

 * Added support for themes using timthumb.php, check FAQ before installing the 
   plugin to see how.
 * Added blocking of access to wp-login.php with blank User Agent and direct posting
   of credentials
 * Improved code that handles .htaccess at wp-content
 * Greatly improved some .htaccess rules

#### 1.0.6

 * Added translation support.
 * Added spanish (es_ES) translation.
 * Added routine for future upgrades.
 * Added support for existing .htacces in wp-content before plugin activation.

#### 1.0.1

 * Added a check to see if server running the plugin is Apache, if not don’t do 
   anything, to avoid creating useless files in not supported servers.
 * Also added an admin notice to show to users that installed the plugin in a not
   supported server.

#### 1.0

 * First release.

## ميتا Meta

 *  Version **1.3**
 *  Last updated **قبل سنة واحدة**
 *  Active installations **200+**
 *  WordPress version ** 3.9.2 أو أعلى **
 *  Tested up to **6.7.5**
 *  Language
 * [English (US)](https://wordpress.org/plugins/sar-one-click-security/)
 * Tags
 * [firewall](https://ar.wordpress.org/plugins/tags/firewall/)[hardening](https://ar.wordpress.org/plugins/tags/hardening/)
   [htaccess](https://ar.wordpress.org/plugins/tags/htaccess/)[protection](https://ar.wordpress.org/plugins/tags/protection/)
   [security](https://ar.wordpress.org/plugins/tags/security/)
 *  [عرض متقدم](https://ar.wordpress.org/plugins/sar-one-click-security/advanced/)

## التقييم

 5 من 5 نجوم.

 *  [  7 5-star reviews     ](https://wordpress.org/support/plugin/sar-one-click-security/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/sar-one-click-security/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/sar-one-click-security/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/sar-one-click-security/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/sar-one-click-security/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/sar-one-click-security/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/sar-one-click-security/reviews/)

## المساهمون

 *   [ Samuel Aguilera ](https://profiles.wordpress.org/samuelaguilera/)

## الدعم

لديك شيء لتقوله؟ بحاجة الى مساعدة؟

 [عرض منتدى الدعم](https://wordpress.org/support/plugin/sar-one-click-security/)

## تبرع

هل ترغب في تقديم دعم متقدم لهذه الإضافة؟

 [ تبرع لهذه الإضافة ](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=AV35DGUR2BCLS)