madhurjain / gopee Goto Github PK
View Code? Open in Web Editor NEW:cloud: Full-Fledged, Self-Hosted Web Proxy in Go
License: MIT License
:cloud: Full-Fledged, Self-Hosted Web Proxy in Go
License: MIT License
Hi instead of not implementig it, or block it to prevent abusing the service, would it not be possible to allow cookies/ajax/post request only from specific urls?
*.google.com
*.facebook.com
*.twitter.com
*.microsoft.com
....
That would still allow users to connect to the sites and post something in restricted networks.
The useragent for all requests is Go's default. A better option would be to send something like Chrome or Firefox (or even allow the user to choose).
If you load a site like YouTube, which makes an AJAX request to googleusercontent.com
(I believe), then it won't pass this through the proxy.
encode url for form's action attribute
Currently nothing using sessions (login, register etc) work correctly.
I would like to add a feature which i can go to a website through proxy like myproxy.com/goto/blockeddomain.com.
I don't have any experience with Go. Please help me save sometimes pointing to where I should read. I don't want to learn Go just for this purpose 💃 It's probably just modify a bit and redirect to /p proxy handler i guess.
It will be greate if you build packages for main OS and put them into releases.
For sites that prevent hotlinking, by checking the referer, they will reject the request with a 403 error, because the referer being passed along is 'invalid' from their perspective.
gopee should inject referer of the URL of the page being serviced to get around this.
2015/07/31 14:21:37 http: panic serving 127.0.0.1:3422: runtime error: slice bou
nds out of range
goroutine 25 [running]:
net/http.func·009()
C:/Users/ADMINI1/AppData/Local/Temp/2/makerelease529514319/go/src/pkg/n1/AppData/Local/Temp/2/makerelease529514319/go/src/pkg/r
et/http/server.go:1093 +0xa0
runtime.panic(0x615fa0, 0x90682a)
C:/Users/ADMINI
untime/panic.c:248 +0xe8
main.ProxyRequest(0x11217700, 0xfddc88, 0x11217850)
E:/golang_open_source/gopee-master/gopee.go:109 +0x397
main.homeHandler(0xfddc88, 0x11217850, 0x11217700)
E:/golang_open_source/gopee-master/gopee.go:292 +0x1a2
net/http.HandlerFunc.ServeHTTP(0x6be170, 0xfddc88, 0x11217850, 0x11217700)
C:/Users/ADMINI1/AppData/Local/Temp/2/makerelease529514319/go/src/pkg/n1/AppData/Local/Temp/2/makerelease529514319/go/src/pkg/n
et/http/server.go:1220 +0x3d
net/http.(*ServeMux).ServeHTTP(0x11223ac0, 0xfddc88, 0x11217850, 0x11217700)
C:/Users/ADMINI
et/http/server.go:1496 +0x10f
net/http.serverHandler.ServeHTTP(0x1127bbd0, 0xfddc88, 0x11217850, 0x11217700)
C:/Users/ADMINI~1/AppData/Local/Temp/2/makerelease529514319/go/src/pkg/n
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.