UDRP¶
The functions of site_monitoring.udrp, taken from their docstrings.
site_monitoring.udrp
¶
UDRP automatic tracking for the Site Monitoring module.
Scheduled every 6 hours by the APScheduler job registered in common/core.py. For each Site with legal_team=True and udrp_status in (None, 'pending'), the job queries the official WIPO UDRP case database, parses the HTML response and: - Updates udrp_status / udrp_last_checked on the Site record. - If the decision is favourable ('won'), creates a LegitimateDomain entry. - Sends notifications via TheHive (comment on existing case/alert), Slack, Citadel and Email.
UDRPDiscovery
¶
UDRP (Uniform Domain-Name Dispute-Resolution Policy) discovery client.
Queries the official WIPO UDRP case database for a given domain name and parses the HTML response to determine the current case status.
Usage::
udrp = UDRPDiscovery('be-thalesaleniaspaces.com')
if udrp.fetch():
status = udrp.get_decision() # 'won' | 'lost' | 'pending'
fetch()
¶
Fetch WIPO case search results for the domain.
A session GET is performed first to obtain the JSESSIONID cookie required by the WIPO server, then a POST submits the domain name.
Returns:
| Type | Description |
|---|---|
bool
|
True if results were fetched successfully, False otherwise. |
get_decision()
¶
Parse the fetched HTML and return the UDRP decision status.
Scans the case result table for outcome keywords in the Decision column: - 'won' - at least one Transfer or Cancel outcome found. - 'lost' - only Denied outcomes found. - 'pending' - no conclusive outcome found (case ongoing or not indexed).
Returns:
| Type | Description |
|---|---|
str
|
'won', 'lost', or 'pending'. |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If fetch() has not been called yet. |
transfer_to_legitimate_domains(site)
¶
Create a LegitimateDomain entry for site after a favourable UDRP decision.
Returns:
| Type | Description |
|---|---|
bool
|
True if a new entry was created, False if it already existed. |
notify_udrp_decision(site, decision)
¶
Send UDRP decision notifications via TheHive, Slack, Citadel and Email.
check_udrp_statuses()
¶
Main scheduled job - runs every 6 hours (registered in common/core.py).
Processes every Site where legal_team=True and udrp_status is None or 'pending'. For each candidate: 1. Queries WIPO via UDRPDiscovery. 2. Updates udrp_status and udrp_last_checked. 3. On a status change to 'won' or 'lost', fires notifications. 4. On 'won', queues a PendingAction for user approval before transfer.