cf_forbidden is a Go package designed to make HTTP requests to websites protected by Cloudflare.
- Make HTTP requests to Cloudflare-protected websites.
- Set custom headers for each request.
- Configure UserAgent and JA3 fingerprinting.
go get -u github.com/iarsham/cf-forbidden
package main
import (
cf "github.com/iarsham/cf-forbidden"
)
func main() {
client, err := cf.New()
if err != nil {
// handle error
}
}
client.Headers = cf.M{
"X-Custom-Header": "value",
}
client.UserAgent = "My Custom User Agent"
client.Ja3 = "your_ja3_fingerprint"
response, err := client.Get("https://target.com", cf.M{"Authorization": "Bearer your_token"})
if err != nil {
// handle error
}
// Access response body and headers
body := response.Body
headers := response.Headers
response, err := client.Post("https://target.com/api/endpoint", cf.M{"Content-Type": "application/json"}, {"data": "your_data"} )
if err != nil {
// handle error
}
// Access response body and headers
body := response.Body
headers := response.Headers
Note: Refer to the documentation of the CycleTLS library here for more advanced configuration options.
We welcome contributions to this project! Please see the CONTRIBUTING.md
file (if available) for details.
This project is licensed under the MIT License.
Disclaimer: This project is provided for educational purposes only. Use it responsibly and ethically. The authors are not responsible for any misuse of this tool. You can copy this Markdown text into a .md file for your project. Let me know if you need any further modifications!