Last update at :2023-12-30,Edit by888u
Pingback is translated as "quote" in simplified Chinese in WordPress. The original intention is very good, informing the other party that this place has information related to you. However, sometimes hackers use the pingback function of WordPress to carry out DDOS attacks, causing server resources to be exhausted, bandwidth to be full, and the website to be paralyzed directly. Therefore, it is directly recommended to close it. How to do it:
Enter the WordPress backend – Settings – in the discussion, change “" and save the settings.
Such a setting can only turn off the pingback and trackback functions of newly added logs. Then the data of previously written articles is saved in the database, and the pingback and trackback functions of the articles are still enabled.
How to disable the pingback and trackback functions of previous articles?
If you need to turn off the pingback and trackback functions of all logs, you need to enter the database and copy the following instructions to run the SQL query:
1 |
UPDATE wp_posts SET 'ping_status' = 'closed' ; |
You can also add the following code to the functions.php file in the theme directory.
1 2 3 |
add_filter( 'xmlrpc_methods' , function ( $methods ) {< /code>
|
Recommended site searches: io domain name registration, host discount code, Korean server rental, domain name space purchase vps host, cc domain name, website virtual host, server rental, ip search, Taiwan host,
发表评论