Labels

Tuesday, September 11, 2018

Some online proxy to access blocked website

Many website are blocked in a few country.
So, if we want to use google search or watch video in youtube, you need to use some tricks. The online web proxy is a convenient method. But I am not sure that whether it is safe or not. You should not sign you account on these proxy.



1)https://www.freeproxyserver.co/
2)https://proxysite.io/
3)https://www.proxysite.com/
4)https://www.vpnbook.com/webproxy

If these proxy are invalid, you should go to www.searx.me to search online proxy, you will find a useful one.



build google mirror


install nginx

sudo vim  /etc/yum.repos.d/nginx.repo
write follow content in this file
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgkey=http://nginx.org/keys/nginx_signing.key
gpgcheck=1
enabled=1
 save and exit the file.

sudo yum install -y nginx

configure 
sudo vi /etc/nginx/conf.d/default.conf 
server {
    listen       80;
    server_name  your vps ip or domain
     location / {
        proxy_pass https://www.google.com;
        proxy_connect_timeout 120;
        proxy_read_timeout 600;
        proxy_send_timeout 600;
        send_timeout 600;
        proxy_redirect    off;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        #allow ip ;
                  #deny all ;
      }
  }

start up
sudo systemctl start nginx

sudo systemctl enable nginx
You have done all the thing need to build a google mirror.

--------------------------------------------------------------------------
some tips
sudo nginx --/etc/nginx/nginx.conf  
sudo systemctl stop nginx
sudo service nginx stop
sudo service nginx restart

REFERENCE
https://laravel-china.org/articles/4431/nginx-tcp-reverse-proxy?order_by=vote_count&


No comments:

Post a Comment