Changing Table Prefix for an Existing WordPresss Site

This is pretty straightforward. You can use phpMyAdmin or MySQL Workbench to change the prefix on all the tables at once, or you can do it one-at-a-time with a tool like SequelPro. If you need to run the SQL by hand, the syntax is… RENAME TABLE `old_name` TO `new_name`; Once all the table names are … Read more

Limit access to wp_admin

IMHO this is not the best method of protecting your WP Admin. IPs can be spoofed. This method also restricts you to specific IPs which can be annoying if you wish to access it from a different office/location. I’d recommend either a simple server-based password protection on the wp-admin directory. Of course, the downside is … Read more

neccessary?

Nothing (you will ruin some web stats that look at it, but you probably son’t care about that) Nothing No. Evil people don’t care what is the value otherwise the easiest security measure would have been to change it instead of actually upgrading anything.

How to safely allow user upload on CPTs?

If I understood correctly the situation described in the question and its comments, the user has capabilities to upload files and to edit your post type, so you shouldn’t be fitering capabilities, the user already has the correct capabilities. The problem is that wp_editor() use the global $post by default, and in your context the … Read more

Restricting user login by IP address

IP address validation during authentication – for a selected user only Here’s a way to hook into the authenticate filter and validate the IP address for a given user during authentication. The user can see the invalid IP address error like shown here: /** * Validate IP Address During Authentication – For A Given User … Read more

Is is necessary to use security plugin for wordpress? [closed]

This highly depends on your capabilities as a developer and you are addressing multiple questions in one go: Your servers need to be secured, might benefit from DDos mitigation systems like a CDN or like large hosters offer (AWS, GCE, etc.) Your user(s) input, both frontend and backend, should be validated, sanitized and escaped before … Read more

Security – Shortcode injection attack

In general, like with any other theme or plugin on your system, there is nothing built-in that can prevent all attack vectors Shortcodes are a kind of macros for generating HTML. Shortcodes that don’t do more than that should generally be safe. The biggest problem with shortcodes is that their insertion and “execution” do not … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)