no. it’s not secure. because a curl http request can spoof any parameter in the request headers.
What you should do?
The least thing you can do is to create a htpassword file in the mail client directory which puts a username & password request before serving the content to the user.
google about making a .htpassword file.
Related Posts:
- WP Cron doesn’t save or in post body
- How to store username and password to API in wordpress option DB?
- In Which Contexts are Plugins Responsible for Data Validation/Sanitization?
- How to properly validate data from $_GET or $_REQUEST using WordPress functions?
- Nonces can be reused multiple times? Bug / Security issue?
- Can someone explain what wp_session_tokens are, and what are they used for?
- WordPress and PHP Sessions – Security and Performance
- What is the difference between esc_html and wp_filter_nohtml_kses?
- Nonce in settings API with tabbed navigation
- Log in from one wordpress website to another wordpress website
- Escaping built-in WP function return strings
- What is the difference between strip_tags and wp_filter_nohtml_kses?
- Error with Custom Admin Screen in iframe Thickbox
- WordPress restrict plugin file direct access
- Plugin development: is adding empty index.php files necessary?
- Confusion on WP Nonce usage in my Plugin
- Coding a plugin on WordPress; when should I sanitize? [duplicate]
- Correct way check nonce (security) using old Options API
- Why do I need to check if wp_nonce_field() exists before using it
- Is there any way to check for user login and send him to login?
- WordPress security issue to output data from user input from theme option form
- Verify if user is wordpress logged in from another app since wordpress 4.0
- Secure Pages Best Practice
- Securing/Escaping Output of file content – reading via fread() in PHP
- best way to make a WordPresss multisite that is secure but at the same time supporting my plugin development efforts
- Video Security just like facebook [closed]
- Is disabling test_form in wp_handle_upload a security concern?
- How to connect my wordpress plugin to a remote database securely?
- wp_nonce_field displaying twice
- Is it necessary to do validation again when retrieving data from database?
- Checking a WordPress for OWASP top 10 vulnerabilities [closed]
- How do I have now a duplicated user entry if this is not allowed (and I cannot replicate it)?
- add_submenu_page hooked function must explicitly check user capabilities – why?
- Are there any security risks when submitting data-attribute data through AJAX?
- Why would you use esc_attr() on internal functions?
- Is it possible to use WP-CLI in a plugin (or theme)?
- Secruity Questions on a timer
- Using HTML links within translatable string
- How to insert HTML/CSS/JS into my iframe plugin?
- How can I save a password securely as a settings field
- Using password protection to load different page elements?
- HTML Elements in my WP Plugin being generated in JS. Security and Translated Text Question about this method being used
- How to store sensitive user data (passwords)
- WP Refused to display ‘URL’ in a frame because it set ‘X-Frame-Options’ to ‘sameorigin’
- How do I make secure API calls from my WordPress plugin?
- esc_attr() on hard coded string
- how to add security questions on wp-registration page and validate it
- What is more secure checking capabilities of user or checking role of user in WordPress plugin development
- Issue with iframe in TinyMCE
- Data Validation, dynamically generated fields (select for example)
- esc_url, esc_url_raw or sanitize_url?
- Adding Custom Text Patterns in the WP 4.5 Visual Editor
- How to create an API for my plugin?
- Plugins in symlinked directories?
- How to use PanelColorSettings in custom Gutenberg block?
- Is there a way for a plug-in to get it’s own version number?
- How to add tab which is visible only in admin side of product in woocommerce? [closed]
- How do I print a notice only on certain admin pages?
- Hook the Keydown Event in the TinyMCE Post Editor
- WordPress Settings API: saving multiple rows of similar data
- Modify how gallery.js builds the shortcode [gallery ...] in tinyMCE?
- How to use is_multisite() in a must-use-plugin?
- DataBase connection problem with PHPUnit and WordPress
- Modify a Free Plugin available on wordpress.org & include with my Premium Theme? [closed]
- How to save iframe tag into a post?
- Registering and using actions which return results in a Plugin class
- Plugin developement and SVN
- WooCommerce Conditional Tag inside plugin
- Add code inside specific wordpress standard function
- Conditional hook based on the core function that is calling it
- How to change the hover content of a specific menu item on WordPress?
- PHP – Extend WordPress Woocommerce Revenue Analytics with custom field
- Amending REST API function without deactivate/activate plugin every time changes is made
- How to add WordPress Admin “Insert Link” UI (searches through existing posts for URL) and functionality into a custom plugin?
- Unable to change footer using wp_footer action hook
- Admin Posts List (edit.php) by post IDs
- wp_localize_script is not adding a global variable for javascript
- A question about add_action()
- How to Get Rid of Unwanted Backslashes in WordPress Form Input inside admin menu option
- WordPress plugin cron working only if admin is logged in
- Enqueue scripts inside a class in a plugin
- Redirect User to custom URL after registering
- WP plugin repository didn’t parse readme.txt correctly
- “Rendering of admin template [path to template] failed”
- Adding a dropdown on the user admin
- Check current URL is 404 in pre_option_stylesheet filter hook
- How to show content in the body with my plugin (only in frontend not backend)?
- Metabox types list
- Problem in plugin debuging in wordpress
- How to include files in the loop via ajax
- Some data has already been output, can’t send PDF file – fpdf issue in WordPress
- Plugin or Custom Page Type
- Custom signature appears twice on page
- wp_mail links are dead
- List Available Templates for Current Theme in a Plugin
- Adding Third Post Box Column: postbox-container-3
- WooCommerce custom payment gateway
- How can create a custom plugin to call my webapi after any registration or membership plugin functionality
- Reinitiate Gutenburg’s blocks using javascript
- Generating Multiple Divi Pages from Database