thiagomiranda3
Forum Replies Created
Viewing 1 replies (of 1 total)
-
Forum: Plugins
In reply to: [ByREV WP-PICShield] Can't work under nginxI fix this issue by another way. I will post here my vhost conf for you. Maybe help.
You need to add this lines in the server {} .
I added this lines after those here:listen 80;
root /home/vhosts/mysite.com/public_html/;
server_name mysite.com https://www.mysite.com ;access_log /var/log/nginx/mysite.com.access.log;
error_log /var/log/nginx/mysite.com.error.log;HERE is what you need to add in order to fix this problem (maybe).
if ($uri ~* ".(jpg|jpeg|png|gif)$"){ set $rule_0 1$rule_0; } if ($remote_addr !~* "^(127.0.0.1|184.173.181.176)$"){ set $rule_0 2$rule_0; } if ($remote_addr !~* "^66.6.(32|33|36|44|45|46)."){ set $rule_0 3$rule_0; } if ($http_referer !~* "^http(s)?://(www.)?(dicasdepresentes.com|translate.google.com|translate.googleusercontent.com|www.microsofttranslator.com|pinterest.com|tumblr.com|facebook.com|plus.google|twitter.com|googleapis.com|googleusercontent.com|ytimg.com|gstatic.com)"){ set $rule_0 4$rule_0; } if ($http_user_agent !~* "(googlebot|msnbot|baiduspider|slurp|webcrawler|teoma|photon|facebookexternalhit|facebookplatform|pinterest|feedfetcher|ggpht)"){ set $rule_0 5$rule_0; } if ($http_user_agent !~* "(photon|smush.it|akamai|cloudfront|netdna|bitgravity|maxcdn|edgecast|limelight|tineye)"){ set $rule_0 6$rule_0; } if ($http_user_agent !~* "(developers|gstatic|googleapis|googleusercontent|google|ytimg)"){ set $rule_0 7$rule_0; } if ($rule_0 = "7654321"){ rewrite /(.*) /byrev-wp-picshield.php?key=FRLf-hGSo&src=$1 last; }
Viewing 1 replies (of 1 total)