Advertisement
khalequzzaman17

How to ignore DMCA notices

Feb 22nd, 2022
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.43 KB | None | 0 0
  1. *> First of all, we need to buy a DMCA ignored VPS for setup proxy.
  2. [ Make sure the OS of DMCA ignored VPS is Ubuntu 18.04 or, 20.04 ]
  3.  
  4. *> Secondly, we will need a VPS/VDS where we will host our website.
  5.  
  6. *> Thirdy, we will require to host our website without any panel.
  7. [ We can use LAMP/or set up our website standalone, ref: xqZfNbTQ ]
  8.  
  9. * Reason for standalone setup: it will save resources like CPU, RAM
  10. * A positive reason: you may access your website through the IPv4
  11.  
  12. Now, make sure to follow the steps to avoid any kind of errors:
  13. 1. Log in to the DMCA ignored VPS through SSH connection.
  14. 2. Run the following commands to install the repos/dependencies:
  15.  
  16. sudo su
  17. apt-get update -y
  18. apt install curl nano nginx screen -y
  19. unlink /etc/nginx/sites-enabled/default
  20.  
  21. [ Details: we are going to install curl, nano & screen as well ]
  22. * curl is required to check the IPv4: curl -Ls https://ipinfo.io/ip
  23. * nano is a text editor, we will need it since we will modify a file
  24. * nginx is required for setting up the proxy on the logged-in server
  25. * screen is required to execute all CMDs, so that it won't drop data
  26.  
  27.  
  28. Once we followed the above instructions and run the commands, do:
  29.  
  30. nano /etc/nginx/sites-available/reverse-proxy.conf
  31.  
  32. and put the above entry:
  33.  
  34. server {
  35. listen <PROXY_VPS_IPv4>:443 ssl;
  36. listen <PROXY_VPS_IPv4>:80 default_server bind;
  37.  
  38. access_log /var/log/nginx/reverse-access.log;
  39. error_log /var/log/nginx/reverse-error.log;
  40.  
  41. location / {
  42. proxy_pass http://<ACTUAL_VPS_IPv4>;
  43. proxy_set_header Host $host;
  44. proxy_set_header X-Real-IP $remote_addr;
  45. } client_max_body_size 250m;
  46. }
  47.  
  48. Here, PROXY_VPS_IPv4 means, the IPv4 of DMCA ignored VPS and,
  49. ACTUAL_VPS_IPv4 means, where (VPS) we have hosted our website.
  50.  
  51. To get the correct IPv4, copy & execute the command from the above.
  52.  
  53. Now, it's time to replace the IPv4 addresses from the entry.
  54. Once the IPv4 addresses were replaced save the file: CTRL+X & y
  55.  
  56. At the final step:
  57.  
  58. ln -sf /etc/nginx/sites-available/reverse-proxy.conf /etc/nginx/sites-enabled/reverse-proxy.conf
  59. nginx -t
  60. systemctl restart nginx && systemctl status nginx
  61.  
  62. The first command will symlink the modified files for access
  63. The second command is for testing the /etc/nginx/nginx.conf file
  64. The third command is for restarting the NGINX and checking the status.
  65.  
  66. ---
  67.  
  68. If you need any help for setting up a proxied server to ignore DMCA,
  69. do contact me on Telegram: @kh4l3quzz4m4n (charge applicable).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement