Giter Site home page Giter Site logo

ghostme4j's Introduction

ghostme4j

๐Ÿ‘ป Ghostme4j - HTTP Proxifier Search and use proxies in an easy way.

Apache License Build Status Maven Central

Download

Download the latest JAR or grab via Maven:

<dependency>
  <groupId>org.brunocvcunha.ghostme4j</groupId>
  <artifactId>ghostme4j</artifactId>
  <version>0.2</version>
</dependency>

or Gradle:

compile 'org.brunocvcunha.ghostme4j:ghostme4j:0.2'

Snapshots of the development version are available in Sonatype's snapshots repository.

ghostme4j requires at minimum Java 6.

Usage Example

  Proxy used = GhostMe.ghostMySystemProperties(true); //true if it needs to test proxy connectivity/anonymity
  URL url = new URL("https://github.com/brunocvcunha/ghostme4j");
  URLConnection conn = url.openConnection(used.getJavaNetProxy());

or apply to the system properties (http.proxyHost and http.proxyPort), and no need to pass it in parameters:

  Proxy used = GhostMe.getProxy(true);  //true if it needs to test proxy connectivity/anonymity
  URL url = new URL("https://github.com/brunocvcunha/ghostme4j");
  URLConnection conn = url.openConnection();

You can also get a random User-Agent, to fake a real browser connection (e.g. Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36)

To apply in the system properties:

  GhostMe.applyUserAgent();

Or to get an User-Agent:

  String userAgent = GhostMe.getRandomUserAgent();

Full GhostMe example:

  Proxy used = GhostMe.ghostMySystemProperties(true); //true if it needs to test proxy connectivity/anonymity

  URL url = new URL("https://github.com/brunocvcunha/ghostme4j");
  URLConnection conn = url.openConnection(used.getJavaNetProxy());
  conn.addRequestProperty(HttpHeaders.USER_AGENT, GhostMe.getRandomUserAgent());

ghostme4j's People

Contributors

bvolpato avatar

Stargazers

PayNeXC avatar the Artist Adamo avatar Diogo Monteiro avatar Andrew avatar  avatar Igor Suhorukov avatar j2eedev avatar  avatar  avatar Sepand Haghighi avatar

Watchers

 avatar  avatar

Forkers

indigos33k3r

ghostme4j's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.