MCPcopy Create free account

hub / github.com/abhizaik/urlvet / functions

Functions265 in github.com/abhizaik/urlvet

FunctionAnalyzeDomainRandomness
---------- Analyzer ---------- AnalyzeDomainRandomness computes multiple heuristics and a combined randomness score. The thresholds and weights are ha
server/internal/service/checks/entropy.go:207
FunctionAnalyzeSSLCert
--- Core analyzer ---
server/internal/service/checks/ssl.go:37
FunctionAnalyzeURLHandler
AnalyzeURLHandler runs a full safety analysis on the given URL. @Summary Full URL analysis @Tags Analysis @Produce json @Param url query s
server/internal/handler/analyze.go:25
FunctionBearerAuth
BearerAuth validates the Authorization: Bearer <token> header. Tokens are issued by AdminLoginHandler and signed with ADMIN_JWT_SECRET.
server/internal/handler/middleware/auth.go:13
FunctionCheckHSTSHandler
CheckHSTSHandler checks whether the URL's host enforces HSTS. @Summary HSTS check @Tags Security @Produce json @Param url query string tru
server/internal/handler/hsts.go:20
FunctionCheckHTTPCombined
CheckHTTPCombined performs a single HTTP request to gather redirect chain, status code, and HSTS header information. Uses HEAD first, falls back to GE
server/internal/service/checks/http_combined.go:27
FunctionCheckIfUsesIPHandler
CheckIfUsesIPHandler checks whether the URL uses a raw IP address instead of a domain. @Summary IP address detection @Tags URL @Produce json
server/internal/handler/ip.go:20
FunctionCheckMXValidity
(domain string)
server/internal/service/checks/mx.go:5
FunctionCheckNSValidity
(domain string)
server/internal/service/checks/ns.go:5
FunctionCheckPhishTank
(targetURL string)
server/internal/service/threatfeeds/phishtank.go:71
FunctionCheckPunycodeHandler
CheckPunycodeHandler detects punycode (IDN) characters in the URL. @Summary Punycode detection @Tags URL @Produce json @Param url query st
server/internal/handler/punycode.go:20
FunctionCheckRedirects
(rawURL string)
server/internal/service/checks/redirects.go:18
FunctionCheckRedirectsHandler
CheckRedirectsHandler follows the URL's redirect chain and reports findings. @Summary Redirect chain analysis @Tags Security @Produce json @P
server/internal/handler/redirects.go:20
FunctionCheckRiskyTLDHandler
CheckRiskyTLDHandler checks whether the URL uses a high-risk TLD. @Summary Risky TLD check @Tags URL @Produce json @Param url query string
server/internal/handler/reputation.go:55
FunctionCheckStatusCodeHandler
CheckStatusCodeHandler fetches the URL and returns its HTTP status code. @Summary HTTP status code check @Tags Security @Produce json @Param
server/internal/handler/statuscode.go:20
FunctionCheckTLSCombined
CheckTLSCombined performs a single TLS connection to extract both TLS info and SSL certificate details
server/internal/service/checks/tls_combined.go:24
FunctionCheckTrustedTLDHandler
CheckTrustedTLDHandler checks whether the URL uses a trusted (gov/edu) TLD. @Summary Trusted TLD check @Tags URL @Produce json @Param url q
server/internal/handler/reputation.go:19
FunctionCheckTyposquatting
CheckTyposquatting returns a TyposquatResult for the given domain. It detects: - Levenshtein typosquatting (edit distance 1-2 from a brand SLD) - Comb
server/internal/service/typosquat/typosquat.go:96
FunctionCheckURLKeywords
(url string)
server/internal/service/checks/url_keyword.go:10
FunctionCheckUrlDepthHandler
CheckUrlDepthHandler checks whether the URL path is suspiciously deep. @Summary URL depth check @Tags URL @Produce json @Param url query s
server/internal/handler/structure.go:48
FunctionCheckUrlLengthHandler
CheckUrlLengthHandler checks whether the URL exceeds the safe length threshold. @Summary URL length check @Tags URL @Produce json @Param ur
server/internal/handler/structure.go:19
FunctionCheckUrlShortenerHandler
CheckUrlShortenerHandler checks whether the URL belongs to a known URL-shortener service. @Summary URL shortener detection @Tags URL @Produce
server/internal/handler/reputation.go:91
MethodClose
Close shuts down the browser allocator
server/internal/service/screenshot/screenshot.go:75
FunctionContainsPunycode
(rawURL string)
server/internal/service/checks/punycode.go:7
FunctionDebug
--------------------------------------------------------------------------- Public API ---------------------------------------------------------------
server/internal/logger/logger.go:271
FunctionDeleteCacheKeyHandler
DeleteCacheKeyHandler godoc @Summary Delete a single cache key @Tags admin @Param key path string true "Cache key" @Success
server/internal/handler/cache.go:90
FunctionDomainInfoHandler
DomainInfoHandler returns WHOIS / RDAP registration data for the URL's domain. @Summary Domain WHOIS / RDAP info @Tags DNS @Produce json @Par
server/internal/handler/domain.go:21
FunctionDomainRankLookup
(domain string)
server/internal/service/rank/lookup.go:3
MethodEnabled
(_ context.Context, level slog.Level)
server/internal/logger/logger.go:140
FunctionError
(msg string, args ...any)
server/internal/logger/logger.go:274
FunctionFatal
Fatal logs at Error level then exits. Mirrors log.Fatal behaviour.
server/internal/logger/logger.go:277
FunctionFlushCacheHandler
FlushCacheHandler godoc @Summary Flush all cache keys @Tags admin @Success 200 {object} map[string]any @Router /admin/cache
server/internal/handler/cache.go:121
FunctionGET
({ url })
web/website/src/routes/og/+server.ts:27
FunctionGetDomainAge
(created time.Time)
server/internal/service/checks/helpers.go:70
FunctionGetDomainRankHandler
GetDomainRankHandler returns the global popularity rank of the URL's domain. @Summary Domain popularity rank @Tags DNS @Produce json @Param
server/internal/handler/rank.go:25
FunctionGetIPAddress
(domain string)
server/internal/service/checks/ip_address.go:7
MethodGetJSON
GetJSON retrieves a JSON value from cache and unmarshals it into the provided pointer
server/internal/service/cache/valkey.go:109
FunctionGetPageFormInfo
GetPageFormInfo fetches the page (with timeout), parses HTML and returns info.
server/internal/service/checks/content.go:62
FunctionGetStats
()
server/internal/store/memory.go:98
FunctionGetStatusCode
(rawURL string)
server/internal/service/checks/status_code.go:8
FunctionGetSubdomainCount
(rawURL string)
server/internal/service/checks/subdomain.go:12
FunctionGetTLSInfo
(domain string)
server/internal/service/checks/tls.go:19
FunctionGetTopEntries
GetTopEntries returns the loaded top-domain slice (read-only).
server/internal/service/typosquat/typosquat.go:88
MethodHandle
(ctx context.Context, r slog.Record)
server/internal/logger/logger.go:100
MethodHandle
(_ context.Context, r slog.Record)
server/internal/logger/logger.go:144
FunctionHasHomoglyphs
(rawURL string)
server/internal/service/checks/homoglyph.go:5
FunctionHealthHandler
HealthHandler returns the service liveness status. @Summary Health check @Tags Utility @Produce json @Success 200 {object} map[string]string
server/internal/handler/health.go:16
FunctionInfo
(msg string, args ...any)
server/internal/logger/logger.go:272
FunctionInit
--------------------------------------------------------------------------- Init ---------------------------------------------------------------------
server/internal/logger/logger.go:203
FunctionIsRiskyTld
(domain string)
server/internal/service/checks/tld_risky.go:5
FunctionIsTrustedTld
(domain string)
server/internal/service/checks/tld_trusted.go:5
FunctionIsUrlShortener
(domain string)
server/internal/service/checks/url_shortener.go:5
FunctionIsValidURL
(rawURL string)
server/internal/service/checks/helpers.go:44
FunctionIssue
Issue creates a signed token that expires after ttl.
server/internal/admintoken/token.go:47
FunctionListCacheHandler
ListCacheHandler godoc @Summary List all cache keys and values @Tags admin @Produce json @Success 200 {object} map[string]any
server/internal/handler/cache.go:26
FunctionLoadDomainRanks
()
server/internal/service/rank/load.go:14
FunctionLoadTopDomains
LoadTopDomains reads the Tranco CSV (rank,domain — no header) and populates the in-memory list used by CheckTyposquatting. Call once at startup.
server/internal/service/typosquat/typosquat.go:46
FunctionLookup
Lookup tries RDAP first, falls back to WHOIS if RDAP fails. Uses context for timeout/cancellation support.
server/internal/service/domaininfo/lookup.go:11
MethodName
()
server/internal/analyzer/tasks.go:19
MethodName
()
server/internal/analyzer/tasks.go:36
MethodName
()
server/internal/analyzer/tasks.go:49
MethodName
()
server/internal/analyzer/tasks.go:61
MethodName
()
server/internal/analyzer/tasks.go:78
MethodName
()
server/internal/analyzer/tasks.go:91
MethodName
()
server/internal/analyzer/tasks.go:104
MethodName
()
server/internal/analyzer/tasks.go:122
MethodName
()
server/internal/analyzer/tasks.go:131
MethodName
()
server/internal/analyzer/tasks.go:149
MethodName
()
server/internal/analyzer/tasks.go:161
MethodName
()
server/internal/analyzer/tasks.go:182
MethodName
()
server/internal/analyzer/tasks.go:213
MethodName
()
server/internal/analyzer/tasks.go:223
MethodName
()
server/internal/analyzer/tasks.go:247
MethodName
()
server/internal/analyzer/tasks.go:256
MethodName
()
server/internal/analyzer/tasks.go:265
MethodName
()
server/internal/analyzer/tasks.go:284
MethodName
()
server/internal/analyzer/tasks.go:294
MethodName
()
server/internal/analyzer/tasks.go:304
MethodName
()
server/internal/analyzer/tasks.go:314
MethodName
()
server/internal/analyzer/tasks.go:347
MethodName
()
server/internal/analyzer/tasks.go:465
FunctionNew
()
server/internal/service/cache/valkey.go:17
FunctionPreload
Preload eagerly loads the signing secret so a missing ADMIN_JWT_SECRET causes a startup panic rather than a panic on the first login request.
server/internal/admintoken/token.go:42
FunctionPrometheusMiddleware
PrometheusMiddleware records per-request latency and request counts.
server/internal/handler/middleware/prometheus.go:12
FunctionRateLimiter
RateLimiter returns a Gin middleware that limits requests per IP
server/internal/handler/middleware/rate_limit.go:15
FunctionRecentErrors
()
server/internal/store/memory.go:71
FunctionRecentScans
()
server/internal/store/memory.go:59
FunctionResolveIPHandler
ResolveIPHandler resolves the domain in the URL to its IP addresses. @Summary DNS IP resolution @Tags DNS @Produce json @Param url query s
server/internal/handler/ip.go:55
FunctionRootHandler
(c *gin.Context)
server/internal/handler/root.go:9
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:20
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:37
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:50
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:62
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:79
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:92
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:105
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:123
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:132
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:150
MethodRun
(in *Input, out *Output)
server/internal/analyzer/tasks.go:162
← previousnext →101–200 of 265, ranked by callers