I want to check whether a fiverr user name exist or not.
for example https://www.fiverr.com/samori will return true
but https://www.fiverr.com/samorissss will return false.
I tried using @get_headers($file) but it always return false for any urls
Can anyone please help me.

Dani AI

Generated

reported get_headers($file) always returning false; rightly suggested Fiverr may make enumeration harder. The following is a short, practical diagnosis and a more reliable PHP approach that handles common environment problems and “soft‑404” pages (sites that return HTTP 200 for a missing profile).

Common causes of get_headers() returning false:

  • allow_url_fopen is disabled or the HTTP/HTTPS wrappers are missing.
  • The cURL or OpenSSL extensions are not available or misconfigured (HTTPS failures).
  • Outbound requests are blocked by the host or firewall.
  • The remote site is using anti-bot protections that block simple requests.

A reliable workflow: (1) confirm PHP environment (phpinfo() to check allow_url_fopen and curl), (2) perform a HEAD request with cURL and inspect the HTTP status, (3) if status is 200 do a GET and look for profile-specific markers (username in the <title>, a canonical link pointing to the profile URL, or profile JSON‑LD), (4) treat a 4xx/5xx as “not found” but beware of soft‑404s and protections.

Example PHP sketch (use in a controlled, respectful way):

function fiverr_user_exists($username) {
    $url = 'https://www.fiverr.com/' . rawurlencode($username);

    // HEAD to read HTTP status
    $ch = curl_init($url);
    curl_setopt_array($ch, [
        CURLOPT_NOBODY => true,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Checker/1.0)',
        CURLOPT_TIMEOUT => 10,
    ]);
    curl_exec($ch);
    $code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
    curl_close($ch);

    if ($code >= 400) return false;

    // GET and check for profile markers (soft-404 protection)
    $ch = curl_init($url);
    curl_setopt_array($ch, [
        CURLOPT_RETURNTRANSFER => true,
        CURLOPT_FOLLOWLOCATION => true,
        CURLOPT_USERAGENT => 'Mozilla/5.0 (compatible; Checker/1.0)',
        CURLOPT_TIMEOUT => 10,
    ]);
    $html = curl_exec($ch);
    curl_close($ch);

    if (!$html) return false;
    if (stripos($html, '<title') !== false && stripos($html, $username) !== false) return true;
    if (preg_match('#<link\s+rel=["\']canonical["\']\s+href=["\']([^"\']+)#i', $html, $m)) {
        return rtrim($m[1], '/') === rtrim($url, '/');
    }
    return false;
}

Cautions and best practices: respect the site’s terms of service and robots.txt, avoid mass enumeration (rate‑limit requests and add exponential backoff), and prefer any official API or partner endpoint if available. If local tests fail even on simple sites (like example.com), the problem is likely the PHP environment or hosting firewall rather than Fiverr-specific behavior.

They have rules about this, plus you have spend money there. All explained why it doesn't work at

Besides, if it was that simple, your spammers could collect names and spam. Looks like they did it right. That is, make it hard to find the users.

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.