Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Inactive talkpages of non-blocked inactive IPs
by
ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ
This query is marked as a draft
This query has been published
by
Qwerfjkl
.
IP talkpages that have not been edited in the last 5 years, the IP is not currently blocked and there have been no edits from that IP in the last 5 years. Also checks for range blocks
Toggle Highlighting
SQL
select CONCAT('[[User talk:', page_title, ']]') as 'IP talkpage' -- format as wikilink so that it can be read by AWB from page join revision on rev_id = page_latest and rev_timestamp < '20180314' -- latest page edit is older than the given date join actor on actor_user is null and actor_name = page_title -- IP with User talk page where page_namespace = 3 -- User talk namespace and page_title like '24.2%' -- Temporary restriction to make query small enough to terminate -- and page_title regexp '^(\\d{1,3}(\\.\\d{1,3}){3}|[\\dA-F]{1,4}(:[\\dA-F]{0,4}){1,7})$' -- IPv4 and IPv6 regex -- and page_title regexp '^([\\dA-F]{1,4}(:[\\dA-F]{0,4}){1,7})$' -- IPv6 regex and not exists (select 1 -- Check that the IP is not blocked from ipblocks where ipb_user = 0 -- Blocked user is an IP and HEX(INET6_ATON(page_title)) between ipb_range_start and ipb_range_end) -- Hex of IP address to check for range blocks and not exists (select 1 -- Check that the IP is inactive from revision_userindex where rev_actor = actor_id -- Choose same IP user as above and rev_timestamp >= '20180314') -- not edited since this timestamp -- order by page_title asc -- get pages in ascending order limit 2000;
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...