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?
- Allow contributor user role to perform copy operation PHP
- How to use own css of functionality plugin?
- Get Custom taxonomy parent with wordpress REST API
- How to add .ini file type to the plugin editor to read and edit?
- Do I lose translations when I change my Text domain for my plugin on wp.org?
- HTMLCollection not counting right in editor? / for loop not working on elements in DOM
- What to do with the .git folder in a WordPress plugin during local development
- register_meta not showing custom post type metabox data in rest api
- Trying to rename a file upload as the hash of file content on wordpress
- Adding the image selector/uploader to an admin back page
- How to write a custom shortcode name book?
- converting a node.js project into a wp plugin
- What happens/fires when you select a block in the editor?
- Want to know how to reveal a WordPress theme, considering the theme name is hidden?
- Is “document loaded” different on admin side than public side?
- Determine if term is Category or Tag
- Check current URL is 404 in pre_option_stylesheet filter hook
- Where to add functions and code snippets in wordpress
- Hook to execute after deleting a Custom Taxonomy
- How to re-render inspector controls?
- Override category archive page title (not the head title)
- Forbidden Error in ajax call with wordpress
- `registration_errors` filter doesn’t seem to be called
- Why User_login key doesn’t work with wp_update_user()
- How to use setAttributes outside of the edit function return
- WP plugin svn checkout 429 error “Too many requests”
- why is apiFetch throwing Unhandled Promise Rejection: TypeError: Object is not a function
- How to grab data after wp user search is complete
- Limit get_next_post to posts from the same author
- How to Login a User inside a Plugin and Redirect to page?
- Using custom IDP with WP
- Trying to run a Ajax request from a checkout form in woocommerce via a custom plugin
- Show list of categories that has posts with different taxonomies
- “add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar
- Securing custom rest API endpoints with public access from PWA
- How do I add filter with woocommerce categories?
- ACF Field value in wordpress login message filter
- Where do I hook to have the server do something in PHP on block attribute change?
- admin-post.php form handling only working when logged in as admin
- Undefined cache functions in my custom plugin
- Some difficulties in implementing markdown editor
- By adding “?login – failed” code unable to access my dashboard
- ajax stopped working when not logged in wordpress
- Change cannonical URL after changing url with add_rewrite_rule()
- jQueryUI draggable doesn’t work in WordPress plugin
- Sanitization and validation input fields – Settings API
- WordPress shortcode with a switch
- Twenty-seventy theme remove additional CSS from head
- call funcution when clicking submit