Title: Manually Refresh Rules
Last modified: September 9, 2021

---

# Manually Refresh Rules

 *  Resolved [sajad2010](https://wordpress.org/support/users/sajad2010/)
 * (@sajad2010)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/)
 * Hello,
    I’m trying wordfence 7.5.5 (and olders too) Manually Refresh Rules has
   failed, I deleted rules.php and wordfence create it, My server cannot access 
   to internet directly, this used wordpress proxy for updates. Wordfence update
   proces using wp-proxy or connecting directly for get updates ? Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14856421)
 * Hello [@sajad2010](https://wordpress.org/support/users/sajad2010/) and thanks
   for reaching out to us!
 * Can you send a diagnostic report to **wftest @ wordfence . com**? You can find
   the link to do so at the top of the **Wordfence Tools > Diagnostics** page. Then
   click on **“Send Report by Email”**. Please add your forum username where indicated
   and _respond here after you have sent it._
 * Also, make sure your site can access these IPs:
    44.239.130.172 44.238.191.15
   35.155.126.231
 * Thanks again!
 *  Thread Starter [sajad2010](https://wordpress.org/support/users/sajad2010/)
 * (@sajad2010)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14862964)
 * Hello, I sent diagnostic report.
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14866717)
 * Thanks for sending those!
 * It definitely is an issue with how Wordfence is detecting the IP address. I see
   the IP it’s detecting for your site’s IP is actually a T-Mobile IP would doesn’t
   sound correct.
 * Who is your host? I might have some notes about proxy IPs and such.
 * Thanks again!
 *  Thread Starter [sajad2010](https://wordpress.org/support/users/sajad2010/)
 * (@sajad2010)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14867135)
 * It’s hosted on my local network in private IP address,
    I have a Public IP address
   and NAT to Private IP, Server don’t have internet directly, I use WP_PROXY_HOST
   to access internet in wordpress. Wordpress and others plugins can access to internet
   and update themself, Only wordfence have problem to update Rules only.
    -  This reply was modified 4 years, 8 months ago by [sajad2010](https://wordpress.org/support/users/sajad2010/).
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14867156)
 * There might be a way to use the HTTPS_PROXY environment variable to cause curl
   to use the proxy. This is untested and might require more tweaks to get HTTPS
   working, but I can cause the curl to try to connect to a different host/port 
   by adding this to the beginning of wordfence-waf.php:
 * `putenv('HTTPS_PROXY=https://ip_of_proxy:port_of_proxy');`
 * (The environment variable could be set elsewhere too.)
 * Your wordfence-waf.php file should be located in your root directory along side
   your htaccess file.
 * Let me know if this helps!
 * Thanks again!
 *  Thread Starter [sajad2010](https://wordpress.org/support/users/sajad2010/)
 * (@sajad2010)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14868739)
 * Tried it , not resolved problem,
    I see “Connecting back to this site” is my 
   private IP . It’s used by wordfence for update me ?
 *  Plugin Support [WFAdam](https://wordpress.org/support/users/wfadam/)
 * (@wfadam)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14871168)
 * Just to make sure, did you substitute the IP and port in that URL? It might be
   easier to have email a copy of your wordfence-waf.php just to be sure. Could 
   you attach it and send it to wftest @ wordfence . com with subject “sajad2010
   for WFADAM” and I can review/edit it for you.
 * Did you know whether the connection to your proxy is plain http or https. (You
   can change it in the URL if it’s plain http, but shouldn’t change the environment
   variable name that’s in caps.)
 * Thanks again!

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Manually Refresh Rules’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

## Tags

 * [manually](https://wordpress.org/support/topic-tag/manually/)
 * [rules](https://wordpress.org/support/topic-tag/rules/)
 * [update](https://wordpress.org/support/topic-tag/update/)

 * 7 replies
 * 2 participants
 * Last reply from: [WFAdam](https://wordpress.org/support/users/wfadam/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/manually-refresh-rules-4/#post-14871168)
 * Status: resolved