Hi,
I want to write a script which will search the net based on a few parameters. They are:

1) Find sites which high pr.
2) Sites should have the feature to allow users to register.


I know very basic php and I was wondering how I should go about doing this. Any help will be highly appreciated.


Cheers,
Vishal

Dani AI

Generated

Quick, practical follow‑up for (and a reply to ): automating the search for high‑authority sites that allow user registration is a legitimate time‑saver; automating account creation or posting can look like spam and may violate terms. Respect robots.txt, site Terms of Service, and rate limits; use a clear User‑Agent with contact info.

A pragmatic pipeline:

  1. Collect candidates with a search API (Google Custom Search, Bing Web Search) or targeted queries such as inurl:register OR inurl:signup "create account" rather than scraping raw search results.
  2. Rank domains with a third‑party authority metric (Google’s public toolbar PageRank is no longer available; use Moz DA, Ahrefs DR, Majestic, etc.).
  3. Fetch each candidate’s HTML and detect registration affordances (forms, links to /register, wp-login.php?action=register). For JS‑rendered sites, flag for headless browser checks.
  4. Store results and metadata for manual verification before any outreach.

Minimal PHP example to detect common registration forms (read‑only check):

<?php
$html = file_get_contents('http://example.com/');
$dom = new DOMDocument();
@$dom->loadHTML($html);
$xpath = new DOMXPath($dom);
foreach ($xpath->query('//form') as $form) {
  $inputs = $xpath->query('.//input', $form);
  $hasPwd = $hasEmail = false;
  foreach ($inputs as $i) {
    $t = strtolower($i->getAttribute('type'));
    if ($t === 'password') $hasPwd = true;
    if ($t === 'email' || strpos(strtolower($i->getAttribute('name')),'email')!==false) $hasEmail = true;
  }
  if (($hasPwd && $hasEmail) || stripos($form->textContent,'sign up')!==false) {
    echo "Registration form found\n";
    break;
  }
}

Caveats and heuristics: many sites use JS or CAPTCHAs—those should be flagged for manual review or a headless browser run. Avoid POSTing, respect robots.txt, throttle requests, and log findings with timestamps and the authority score used. This keeps the workflow useful, scalable, and compliant while addressing the original goal articulated by .

Recommended Answers

All 2 Replies

Trying to write a spam-bot ,are we?

Hi,
Not really . Trying to automate my daily search quiries. I don't need any automation just the searching part as I waste alot of time searching for such sites.


Cheers,
Vishal

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.