All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.droids.norobots.package.html Maven / Gradle / Ivy





  

Using norobots-rfc

  1. Import the class import org.apache.http.norobots.NoRobotClient;
  2. Create an instance for your user-agent NoRobotClient nrc = NoRobotClient("googlebot");
  3. Parse a robots.txt at a site nrc.parse( new URL( "http://www.apache.org/" ) );
  4. Ask if a url is allowed boolean test = nrc.isUrlAllowed( new URL( "http://www.apache.org/index.html" ) );




© 2015 - 2024 Weber Informatics LLC | Privacy Policy