you need to create a post meta with ip value. And check it if ip available in database or not. you need to delete this meta key with value between 39 to 41 minute.
write a function to delete meta key with value in 40th minute. paste This function on single.php
Check ip available in db or not
$query = new WP_Query( 'meta_key=ip&meta_value=".$ip_address );
if ( $query->have_posts()){
//do something to block
}
Related Posts:
- How to access my site using IP Address? [closed]
- How to fix IP address issues after server migration
- What’s the difference between IP address 0.0.0.0 and 127.0.0.1?
- What is the difference between unicast, anycast, broadcast and multicast traffic?
- Why is it not possible to fake an IP address?
- What is IP address ‘::1’?
- Is there a way to get all IP addresses of youtube to block it with Windows Firewall?
- IP address whitelist to update WordPress core and plugins
- Relative or dynamic site url possible?
- Limiting sessions to one IP at a time
- IP address character limit
- How do I turn off wordpress comments ability to capture a users ip address?
- Broken CSS after changing the site URL
- How to set ipv6 address as siteurl?
- Does WP show me if I’m logged in from multiple locations?
- Is there any reason only 1 (my) IP would be added to this table using $wpdn->insert?
- Check if a user already voted [closed]
- Display posts if specific country
- Is it possible to store visitors IPs in wp_postmeta table?
- Is it possible to get the currently logged in admin’s IP?
- Store brute-force IP addresses
- Restricting user login by IP address
- Limit access to wp_admin
- Plugin for limiting user registration based on ip with expiry period?
- How do I test my localhost WordPress project with VirtualBoxVM?
- How can I hide the IP of registered commentators?
- Restricting access to a single MultiSite site based on IP — possible?
- WordPress Multisite domain mapping with different IPs
- Blacklist IP After Using WordPress Plugin Detector?
- Dynamically update Site/WordPress Address
- Limiting sessions to one IP at a time
- How can I run a custom shortcode function on a live site and only run if the viewer is a specific machine?
- Block IP Addresses using Code [closed]
- Comment IP Plugin – Fixing onfocus=’this.select()’
- How can I add IP address to my post?
- Change of IP Address
- IP addresses to block to stop WP auto-update?
- How do I limit access to wp-admin to an IP range?
- Show a different link based on IP
- redirect to a child theme based on the town of Internet users in france with the verification of the ip address
- DNS – Change WordPress Site Name?
- Add a mature content warning to first-time visitors
- get_bloginfo prints IP instead of url
- Limit action in comment according to IP
- how to move another machine or server without dealing with IP
- Redirect user based on his language and country using WPML [closed]
- Path Issue – Getting “localhost” instead the IP
- WordPress: redirecting to my old public ip
- Access web server in local LAN using domain name instead of IP
- REST api returns 404 on some WordPress sites
- WordPress in AWS Lightsail – restrict public IP
- IP Address Whitelist to Allow WordPress Core Auto Updates
- Automatically switch language based on visitor’s country
- Accessing WP multisite via IP instead of domain
- WordPress Update E-Mail shows IP instead of Domain
- WordPress redirect users from certain countries to subpage of language version
- Unable to properly load WordPress Admin page
- Using a page-template to restrict access based on IP (Frontend)
- Limit Search Queries per IP per Day
- PressPi (WordPress) Broken Layout
- Changing the site URL
- Test for IP in Array Always Fails on First IP
- Log IP of users who click a button? [closed]
- Show my custom post id if a country or ip
- Detecting IP Address of someone using ‘copy’ function [closed]
- I changed the site address and wordpress address from localhost to my ip and it doesn’t work anymore
- How to bind MySQL server to more than one IP address?
- What’s the command-line utility in Windows to do a reverse DNS look-up?
- What is the difference between Unix sockets and TCP/IP sockets?
- What is this IP address: 169.254.169.254?
- How to determine the hostname from an IP address in a Windows network?
- What is “anycast” and how is it helpful?
- WordPress site down for my IP only after trying to implement .htaccess whitelist