There are websites like, "XYZ.com" and "ABC.com" and those websites can only be accessible with such a range of ip addresses.
We have public IP and using that third party website are accessible. (with only office premises we can access those website)
I have to develop a website (djangoproxy.com) in django so that I can access those third party websites from outside the public ip range.
so i plan to access those website like,
XYZ.djangoproxy.com,
ABC.djangoproxy.com
There is one condition, that access is based on only authenticated users. So I have to write code on djangoproxy.com for an authentic user. and after successfully login open a third party website in the same browser tab.
Had checked some python packages for vpn,
https://gist.github.com/Lazza/bbc15561b65c16db8ca8
Reference:
Python requests, change IP address
Can you guide me if this functionality can be developed using python code or any web-server configuration.
I am using NGINX as a web-server to host djangoproxy.com.
You can use django-revproxy for your purpose. Your Django server will sit between the client and the external website. You can add the authentication logic of Django and allow proxy for only authenticated clients.
Related
I have programmed in python a web application using flask. I decided to deploy it from my home with a raspberry pi which runs the code continuously. I would like it to be accessible from a web browser and for that I have thought to configure my router to redirect the requests to my server. I also took care to configure my firewall accordingly. It turns out that the application works well and is perfectly accessible by typing its public IP in my URL bar. The problem is that I can't access it using a domain name. I have rented a new one and I have configured the DNS records so that it points to my server. I tested the DNS servers and it seems that the pointing is effective. However, when I enter the domain name I don't get my web application but the page of hostinger, the hosting company where I rented the domain name. I have contacted the technical department and they assure me that the problem is not in the DNS but in the hosting, so in my python code. This leaves me perplexed because my web application is accessible from its public IP. So the code should be good.
Please do not hesitate to ask me for additional details, either on the level of my python program or on the level of my server.
Thanks in advance for your help
I made a script which accesses some data from an API. The problem is that to access the API I have to visit their website and enter my IP in allowed IPs list to get the authorization key for that specific IP. There no such option to allow all IPs. Now my script is running on PythonAnywhere which is a free cloud service and doesn't provide static IP. So any idea how I can get a static IP? or maybe any other free cloud service which provides static IP. I tried Heroku too with that QuotaGuard extension but it asks for credit card details first and I don't have one.
Is there any service out there which can be accessed from any IP address and then use a private IP to get content and deliver that content to me?
If the provider doesn't support giving you a static IP, you use a proxy server.
On Heroku there we have the fixie or quotaguard addons that could help here.
I am trying to access a public url from the Google Cloud Platform. But each time, I am getting connection timeout error. That URL is very well opening in my browsers and on different network as well. I am using Python to make a POST request to this URL and locally it is working fine. I don't know if need to set some security measures in Google or not.
Thanks and regards
Vipendra Singh Sengar
as mentioned here How to access websites that have ip block on GCP
By default, a Cloud Run service connects to external endpoints on the internet using a dynamic IP address pool.Which is problematic if you want to access an external website that requires connections originating from a static IP address, such as a database or API using an IP address-based firewall.
So you need to get an Static outbound IP address
I Would like to write a little django web-app to be run in my local WLAN, to allow my customers to browse thru the offers that I made available.
The WLAN is not password protected and isolated from web.
Ideally, I would like that when a user connect to my wlan with a smartphone or tablet, he or she is been jumped directly to the offer webserver, without entering any address or url.
Is there any combination of port forwarding/triggering on the wlan router and the webserver that can accomplish this task ?
I think that for this purposes you need openwrt or similar firmware for your router, or as a second solution you can make one of your computers as internet-gateway, so router will get internet from this gateway, and on a gateway there should be an app/config/etc. , which redirect user to your app, when user firstly open any page.
I am trying to scrape a website which serves different page depending upon the geolocation of the IP sending the request. I am using an amazon EC2 located in US(which means it serves up a page meant for US) but I want the page that will be served in India. Does scrapy provide a way to work around this somehow?
If the site you are scraping does IP based detection, your only option is going to be to change your IP somehow. This means either using a different server (I don't believe EC2 operates in India) or proxying your server requests. Perhaps you can find an Indian proxy service?