Title: Masoud's Replies | WordPress.org

---

# Masoud

  [  ](https://wordpress.org/support/users/masoud1111/)

 *   [Profile](https://wordpress.org/support/users/masoud1111/)
 *   [Topics Started](https://wordpress.org/support/users/masoud1111/topics/)
 *   [Replies Created](https://wordpress.org/support/users/masoud1111/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/masoud1111/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/masoud1111/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/masoud1111/engagements/)
 *   [Favorites](https://wordpress.org/support/users/masoud1111/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 52 total)

1 [2](https://wordpress.org/support/users/masoud1111/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/masoud1111/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/masoud1111/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/masoud1111/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] missing htaccess data](https://wordpress.org/support/topic/missing-htaccess-data/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/missing-htaccess-data/#post-14664264)
 * [@tenkstars](https://wordpress.org/support/users/tenkstars/) understood. thank
   you for the help ^_^
    [@qtwrk](https://wordpress.org/support/users/qtwrk/) thank
   you for the info.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[LiteSpeed Cache] missing htaccess data](https://wordpress.org/support/topic/missing-htaccess-data/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/missing-htaccess-data/#post-14661825)
 * hi [@tenkstars](https://wordpress.org/support/users/tenkstars/). thanks for the
   help. i’m not a pro.
    but from what i understood by looking at the wp-rocket 
   original code was i looked at similarities, and deleted them. so the above code
   is not being produced in lightspeed cache and somehow is missing i guess. and
   if another cache plugin is producing these codes, maybe they are good? or maybe
   lightspeed has not developed their plugin to this extent yet. like the Pre-Load
   Fonts feature, that wp-rocket has and is such a good option to save site loading
   time by pre-loading them from the server and also suggested by SEO, but lightspeed
   cache is starting to think of implementing it.
 * that’s why i came here to ask for the plugin author/support opinion on this code
   to see if it’s truly harmful? or is it something that is good to be there…
    -  This reply was modified 5 years, 1 month ago by [Masoud](https://wordpress.org/support/users/masoud1111/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] wordfence 404 page is killing all css and plugins](https://wordpress.org/support/topic/wordfence-404-page-is-killing-all-css-and-plugins/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/wordfence-404-page-is-killing-all-css-and-plugins/#post-13026978)
 * hello [@wfgerald](https://wordpress.org/support/users/wfgerald/)
    thanks for 
   checking this problem and helping me.
 * i did what you asked.
    there is no error there –> [please check this photo to see](https://imgur.com/oizbE1d)
   + [please check this photo too, it the rules i’ve set (not working)](https://imgur.com/emBA415)
 * what i did extra that i felt might help :
 * 6 – yesterday i contacted the theme author (rubybuild), at envato, themeforest.
   
   and described the issue to them. and asked if there is something wrong with theme
   or any issue regarding this . they answered today and said the theme is quality
   coded and tested many times. and they also said that this is related to wordfence
   which is causing the issue by forcing the 404 the wrong way causing incompatibility
   with other plugins and codes.
 * 7 – while the :
    ” Brute Force Protection > additional options > prevent discovery
   of username through ‘/?author=N’ scans, oEmbed API, … ” was enable i also enabled
   the option : ” Disable reading of php://input ”
 * i thought this might help. but unfortunately the results were the same as before.
 * 8 – i disabled option :
    ” Brute Force Protection > additional options > prevent
   discovery of username through ‘/?author=N’ scans, oEmbed API, … ” from wordfence,
   and to make sure if this is the theme issue, or is it wordfence, i decided to
   install a free plugin called — > [Disable Author Archives](https://wordpress.org/plugins/disable-author-archives/)
 * and the result were 100% with no issue in 404 pages. everything went fine and
   worked with no problem.
    [for seeing the results, please click on this photo](https://imgur.com/OeRWwHb)
 * now the ” Disable Author Archives ” plugin, has no options and it’s very simple.
   
   i paste the code since it is free, and with permission of the author [@freemp](https://wordpress.org/support/users/freemp/)
   for study and improvements purposes.
 * the code is :
 *     ```
       if ( ! defined( 'ABSPATH' ) ) exit;
   
       /* Return status code 404 for existing and non-existing author archives. */
       add_action( 'template_redirect',
       	function() {
       		if ( isset( $_GET['author'] ) || is_author() ) {
       			global $wp_query;
       			$wp_query->set_404();
       			status_header( 404 );
       			nocache_headers();
       		}
       	}, 1 );
       /* Remove author links. */
       add_filter( 'author_link', function() { return '#'; }, 99 );
       add_filter( 'the_author_posts_link', '__return_empty_string', 99 );
       ```
   
 * this code done no issue and not stopped any plugin or css or etc from running.
 * -note : when i say that i’m testing, i mean
    A – i delete browser cache, stored
   files and everything from the beginning of time B – flush DNS C – restart browser
   D – use different browsers to make sure E – click on “Save Changes” to Update
   WordPress Permalinks each time, after any changes.
 * sorry for long message,
    please help me fix this.
 * thank you for your help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Wordfence Security - Firewall, Malware Scan, and Login Security] wordfence 404 page is killing all css and plugins](https://wordpress.org/support/topic/wordfence-404-page-is-killing-all-css-and-plugins/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/wordfence-404-page-is-killing-all-css-and-plugins/#post-13025430)
 * hello [@wfgerald](https://wordpress.org/support/users/wfgerald/)
    for a moment,
   i thought just because this is a free support, no one will help me.. but many
   thanks for your attention and your help.
 * i did what you asked.
    1 – disabled all other plugins except, wpbakery and massive
   addons (results were the same). 2 – changed the theme to default wordpress 2020(
   the issue is not happening because there is no wpbakery used in 2020 theme. 3–
   switched firewall to learning mode, but the results were the same.
 * the ?author is not getting blocked by the firewall. it’s just i think wordfence
   is not compatible with the wp-bakery page builder.
 * here is a picture of the issue in backend –> [look at this picture please](https://imgur.com/MDMwQjy)
 * what i did extra that i thought might solve the issue :
 * 4 – i tried to add the wp-bakery elements to whitelist rules. so worfence allows
   it to pass and work. but there is no document about it. so i add anything that
   came to my mind. i tried to add vc-row , vc-column , vc-css etc
    and tried to
   add them to header, body, query string (i honestly had no idea what i was doing
   and how to use it) got a little help from this document in wp-bakery page builder-
   > [Click On LINK Please](https://visualcomposer.com/help/faq/how-can-i-make-sure-that-wordfence-plugin-works-fine-with-visual-composer/)(
   did no help to solve the issue)
 * 5 – i tried to add the code, as do_shortcode to my header to force it to work(
   i think wp-bakery [vc-column] is shortcode). but nothing. the results were the
   same.
    and i saw my broken header twice. so i removed the code.
 * the thing is, the header and 404 template is working fine on all other 404 pages
   i face, and the issue only happens when wordfence is forcing the browser to show
   a 404 page when a user tries to access an author page (existing author or non-
   existing author).
 * for example, if you go to a non-existing page, like: site.com/nothing
    it will
   show a normal 404 and everything works fine. –> [Please see normal 404 Picture](https://imgur.com/jSKFvnY)
 * but when you try to access an author page, like: site.com/?author=2 or site.com/?
   author=1234
    the wordfence forced 404 page will be shown out of any style, and
   not running the css, elements, shortcodes, plugins and blocks all.
 * please help me fix it.
    thank you for help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostViews] reset the view data and make them 0](https://wordpress.org/support/topic/reset-the-view-data-and-make-them-0/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/reset-the-view-data-and-make-them-0/#post-9572040)
 * i did what you said, and things are ok now.
 * thanks a lot for help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP-PostViews] reset the view data and make them 0](https://wordpress.org/support/topic/reset-the-view-data-and-make-them-0/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/reset-the-view-data-and-make-them-0/#post-9566548)
 * hello.
    that did the work for posts. tnx a lot.
 * but my custom post type’s posts, does not have a custom fields.
    is there a way
   so i can make them 0 too?
 * thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clef Two-Factor Authentication] shortcode for custom login page](https://wordpress.org/support/topic/shortcode-for-custom-login-page/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-for-custom-login-page/#post-8878060)
 * hi [@stremblaym](https://wordpress.org/support/users/stremblaym/) .
    thank you
   for the answer. but it’s not working. they did include nothing about this, in
   their documentation.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Clef Two-Factor Authentication] shortcode for custom login page](https://wordpress.org/support/topic/shortcode-for-custom-login-page/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/shortcode-for-custom-login-page/#post-8865778)
 * i’ve also used these 2 codes.
    in my custom login page ( page-user-login.php ).
   but they didn’t work for me.
 * 1 –
    `<?php do_shortcode('clef_render_login_button'); ?>`
 * 2 –
    `<?php do_shortcode('[clef_render_login_button]'); ?>` ———- Update : It 
   will work if i use the shortcode in a widget! and i can see the login button.
   but it’s not appearing in my login form when i use the shortcode.
 * thanks .
    -  This reply was modified 9 years, 6 months ago by [Masoud](https://wordpress.org/support/users/masoud1111/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wp-login canonical_redirect issue](https://wordpress.org/support/topic/wp-login-canonical_redirect-issue/)
 *  Thread Starter [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/wp-login-canonical_redirect-issue/#post-8850646)
 * no help ? no one know how to do this?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Internal Server Error](https://wordpress.org/support/topic/internal-server-error-460/)
 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/internal-server-error-460/#post-8850644)
 * [@bbjmm](https://wordpress.org/support/users/bbjmm/)
    if your site is running
   then your login page will run without an issue too.
 * i clicked on the address you said, and it took me to the login pannel:
    here 
   is the address: [http://www.mariobajardi.com/bjm/wp-login.php?redirect_to=http%3A%2F%2Fwww.mariobajardi.com%2Fbjm%2Fwp-admin%2F&reauth=1](http://www.mariobajardi.com/bjm/wp-login.php?redirect_to=http%3A%2F%2Fwww.mariobajardi.com%2Fbjm%2Fwp-admin%2F&reauth=1)
 * have you tried to reach your login page from another device ?
    because i can 
   see your login page without a single issue.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Internal Server Error](https://wordpress.org/support/topic/internal-server-error-460/)
 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/internal-server-error-460/#post-8841948)
 * [@bbjmm](https://wordpress.org/support/users/bbjmm/)
    hi. i am able to browse
   your website without any problem. no internal error is here.
 * maybe this is cause by old cache of your browser.
    please first of all try to
   clear your browser’s cache. close & re-open the browser. go to your website. 
   press CTRL+F5 to see the latest changes.
 * by the way, your website looks cool 🙂
    good luck, Masoud .
    -  This reply was modified 9 years, 6 months ago by [Masoud](https://wordpress.org/support/users/masoud1111/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Corrupted images in Media Library](https://wordpress.org/support/topic/corrupted-images-in-media-library/)
 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/corrupted-images-in-media-library/#post-8838478)
 * [@littleinu](https://wordpress.org/support/users/littleinu/)
    hi. i faced the
   same issue not long ago, all of my images are corrupted and whatever i uploaded
   looked broken.. (not completely the same issue, but somehow like yours) i googled
   and i came up with this solution :
 *     ```
       function parallelize_hostnames($url, $id) {
        $hostname = par_get_hostname($url);
        $url =  str_replace(parse_url(get_bloginfo('url'), PHP_URL_HOST), $hostname, $url);
        return $url;
       }
   
       function par_get_hostname($name) {
        //add your subdomains below, as many as you want.
        $subdomains = array('alexjberger.com');
        $host = abs(crc32(basename($name)) % count($subdomains));
        $hostname = $subdomains[$host];
        return $hostname;
       }
       add_filter('wp_get_attachment_url', 'parallelize_hostnames', 10, 2);
       ```
   
 * 1 – add this into your functions.php file
    from Dashboard > Appearance > Editor
   > Functions.php 2 – complete answer can be found here : [http://stackoverflow.com/questions/34404336/how-to-parallelize-downloads-across-hostnames-on-wordpress](http://stackoverflow.com/questions/34404336/how-to-parallelize-downloads-across-hostnames-on-wordpress)
 * goodluck,
    Masoud .
    -  This reply was modified 9 years, 6 months ago by [Masoud](https://wordpress.org/support/users/masoud1111/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Plugin to pay and secure your product](https://wordpress.org/support/topic/plugin-to-pay-and-secure-your-product/)
 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/plugin-to-pay-and-secure-your-product/#post-8838431)
 * [@dudedesign](https://wordpress.org/support/users/dudedesign/)
    hi. i am using
   s2members plugin (paid version) and it’s a pay and secure plugin. however i’m
   not sure about the booking/choosing a date to receive item (if s2members has 
   it or not) you can check more details on their site : [http://www.s2member.com](http://www.s2member.com)
 * goodluck,
    Masoud .
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [Internal Server Error](https://wordpress.org/support/topic/internal-server-error-460/)
 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/internal-server-error-460/#post-8838416)
 * [@bbjmm](https://wordpress.org/support/users/bbjmm/)
    hi. i’ve faced such issue
   before. 1 – can you see the main site page? (as an example [http://www.yoursite.com](http://www.yoursite.com))
   2 – what have you done recently to your site? any changes in files/codes ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] rtl language](https://wordpress.org/support/topic/rtl-language-8/)
 *  [Masoud](https://wordpress.org/support/users/masoud1111/)
 * (@masoud1111)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/rtl-language-8/#post-8795976)
 * hi [@william712](https://wordpress.org/support/users/william712/)
    what [@mohammad2232](https://wordpress.org/support/users/mohammad2232/)
   is trying to say , is: he has a website in RTL language – Persian/Farsi Language.
   1 – he is using another ReCaptcha for his login form , and is it in Persian/Farsi
   Language by default (perhaps it can detects the site language , or there is an
   option in the plugin to change the language of google recaptcha)
 * 2 – the ReCaptcha you are using in Contact Form7 default Language is in English.
 * how can he change the default contact form7 Language, from English to Persian/
   Farsi .
    -  This reply was modified 9 years, 7 months ago by [Masoud](https://wordpress.org/support/users/masoud1111/).

Viewing 15 replies - 1 through 15 (of 52 total)

1 [2](https://wordpress.org/support/users/masoud1111/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/masoud1111/replies/page/3/?output_format=md)
[4](https://wordpress.org/support/users/masoud1111/replies/page/4/?output_format=md)
[→](https://wordpress.org/support/users/masoud1111/replies/page/2/?output_format=md)