How encode a script

Hello anyone know how encode a script like this? <?php
$_obfuscatedFF66756E6374696F6E = function ($f, $d) {
$lines = @file($f);
$c = @count($lines) - 2;
$lines[$c] = @strtok($lines[$c], "\");
$head = (int) @base64_decode(@strtok(@end($lines), "\")) - 161803;
$code = @join("", @array_slice($lines, $head, -1));
$code = @openssl_decrypt($code, "AES-128-CBC", "ioncube is so easy to decode these days...", false, "1!2@3#4$5%6^7&8*");
$idx = @base64decode(@strtok("\"));
if (!defined("__FILE" . $idx . "")) {
define("FILE" . $idx . "", $f);
define("DIR" . $idx . "",
retur
retur

?>

How to Make Your WordPress Blog Completely Private (4 Ways)

Do you want to make your WordPress blog completely private? 

You can make your blog completely private so that no one but you and your chosen visitors can see the content you publish.

In this article, we’ll show you how to make your WordPress blog completely private. 

How to make your WordPress blog completely private (3 ways)

Why Make Your WordPress Blog Completely Private?

Usually, when you add a new blog post in WordPress, you’ll want to publish it for the entire world to see. 

However, there are times when you may want to create a private blog or make certain posts private and only available to specific users.

There are all kinds of reasons to make your WordPress blog private:

  • A blog that’s being built, or undergoing maintenance, so it’s not fully ready for the public.
  • A family blog for sharing your family events, wedding photos, baby pictures, and more.
  • A private blog for your private diary or personal journal.
  • A space for teams to work on projects and collaborate outside of public view.
  • A classroom website with lessons and notes that’s only available to registered students.

That being said, let’s show you how you can make your WordPress blog completely private. Simply use the quick links below to jump straight to the method you want to use.

Method 1. Making Your WordPress Blog Private with SeedProd

The easiest way to make your blog completely private is by using the SeedProd plugin. It’s the best WordPress theme builder and drag and drop page builder for WordPress used by over 1 million websites.

It lets you easily create coming soon and maintenance mode pages to make your WordPress blog private, plus it makes it easy to build your email list even while you’re building your blog.

SeedProd

It’s also equipped with 150+ different templates you can use to create custom pages like, 404 pages, webinar registration pages, and even entire custom WordPress themes without writing any code.

If you want to create a coming soon page to launch your blog, then see our guide on how to create a beautiful coming soon page in WordPress with SeedProd.

Beyond keeping your blog private, your coming soon page can also help to gauge user interest, build hype, and capture leads.

With your coming soon page live, you can keep your blog private as long as you like. You can even customize your coming soon page to act as a home screen, while your blog remains private.

Coming soon page example

If you want to put your blog in maintenance mode temporarily, then see our guide on how to put your WordPress site in maintenance mode.

Once your blog is in maintenance mode, you can freely make changes to your blog, or even build a new blog from scratch. Maintenance mode also prevents the search engines from indexing and ranking your site.

Your visitors will only see the maintenance mode screen.

Maintenance mode page example

Method 2. Creating a Private Members-Only Website with MemberPress

Another way you can make your blog private is by creating a membership blog that’s entirely private to members. 

The best way to do this is with the MemberPress plugin. It’s one of the best WordPress membership plugins that’s helped creators earn more than $600 million in the last year alone.

MemberPress

It lets you easily create online courses, manage access controls, and add lessons, all within the WordPress block editor.

Plus, it integrates with the top WordPress page builder plugins, lets you add drip content in WordPress for your premium posts, add content paywalls, and lock free content for specific users.

For more details on setting up your members-only website, see our ultimate guide on creating a WordPress membership site.

Method 3. Making Your WordPress Blog Completely Private with My Private Site

Another way you can make your WordPress blog private is by using the My Private Site plugin. This plugin makes it easy to hide your blog and is a great fit for family blogs and companies who never plan on making their content public. 

It can also be used when your website is under construction, but the SeedProd method above does a much better job at helping you create a coming soon or under construction page. 

First thing you need to do is install and activate the plugin. For more details, see our beginner’s guide on how to install a WordPress plugin.

Upon activation, you need to go to My Private Site » Site Privacy to configure the plugin settings.

Next, you need to check the ‘Enable login privacy’ box, so the plugin will make your site private.

Then, click the ‘Save Privacy Status’ button.

Check enable login privacy box

With this option enabled, visitors will see your site login screen when trying to visit your website.

Next, click the ‘Landing Page’ menu option.

Here, you can choose where users will be redirected after a successful login. 

Simply select the radio button in the ‘Landing Page After Login’ section, or enter a specific URL into the ’Specified Destination URL’ box.

Then, click the ‘Save Landing Page’ button.

Landing page redirection options

After that, click the ‘Home Page’ menu option. 

Here, you can check the box in the ‘Site Home’ section to make your homepage accessible to visitors. 

We’ll leave the box unchecked, but it can be helpful if you want to show a message to your visitors while keeping the rest of your website hidden. 

If you make changes, then click the ‘Make Page Public’ button.

Optional make home page public

Next, click the ‘Membership’ menu option.

Here, you can choose whether or not you want users to be able to register to your blog.

To allow visitors to register and view your blog, both boxes must be checked. If you don’t want to allow user registration, then simply leave both boxes unchecked.

Then, click the ‘Update Options’ button.

User registration options on private blog

After that, your WordPress blog will be completely private.

Only users with login credentials will be able to log in and view your blog.

Login page example

Method 4. Making Individual Blog Posts Completely Private with WordPress Settings

If you only want to make individual blog posts completely private, then you can use the built-in WordPress settings to do this.

Simply open up the blog post you want to make private, or create a new post. Then, on the post editor screen, you’ll see a ‘Visibility’ option in the ‘Status & visibility’ meta box.

Then, you need to click the ‘Public’ link.

Edit blog post visibility

This brings up a drop down where you can select the ‘Private’ option or even make your post password protected.

Simply click the radio button to choose the option best for your needs.

Make post private or password protected

If you choose to make your post password protected, then you’ll need to enter a password. Your users will need to enter the password you entered to view the post.

Once you’re finished making changes, make sure to click the ‘Update’ or ‘Publish’ button to make your post private.

Now, only admins and editors will be able to view the post when they are logged into the WordPress dashboard.

If you’re the only user on your blog, then you don’t need to worry about this. But, if you have other users, then you need to make sure they have the right user role to view the post.

For more details, see our guide on how to add or remove capabilities to user roles in WordPress.

If you want to make users sign up, or become a member, before viewing your content, then see our guide on how to add content locking in WordPress.

We hope this article helped you learn how to make your WordPress blog completely private. You may also want to see our guide on how to get a free email domain, and our expert picks of the best analytics solutions for WordPress users

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Make Your WordPress Blog Completely Private (4 Ways) first appeared on WPBeginner.

Hi everyone, I’m Denise_4

I'm still studying (Design & Innovation/ design & computing and IT), but have been looking to see what resources are out there to both support my studies and help me get some solid ideas about what's going on out there when I'm finished with this course.
I'm starting out late, but I'm it's not over 'til it's over, right?

Hi everyone, I’m Satinder singh

My self Satinder pal Singh from Melbourne, Australia. i have done graduation from Melbourne University. i have 8 experience in digital marketing. i am working for Manny Real Estate Agency as a Digital Marketing Specialist.

Hi everyone, I’m serenityh

Hi everyone,

My name is Serenity. I recently graduated with two certificates from DeVry University. One in Web Design and the other in Web Development. I am going back to get my bachelors. I am wanting to open my own business one day in creating layouts or websites for customers. I am looking forward to speaking to everyone.

10 Unique And Creative Beverage Packaging Designs

Some of the coolest types of projects in the world of graphic design are package designs, and beverage packaging is perhaps the coolest of all.  Not only do designers get to showcase their artistic talents, they are challenged to do so in a way that facilitates function.  After all, beverage packages are also liquid containers...

The post 10 Unique And Creative Beverage Packaging Designs appeared first on DesignrFix.

WooCommerce 6.3 to Introduce New Product Filtering by Attributes

The WooCommerce development team released the first RC for version 6.3 this week. The upcoming major release is expected on March 8, 2022, and is set to introduce an exciting, long-awaited feature: a new lookup table that will offer the ability the accurately filter products by attributes.

Shop owners who sell variable items have been frustrated for years by WooCommerce’s broken filtering of variable products. Automattic developer Néstor Soriano explained the problem when the new lookup table went into testing last year:

The problem appears when there are variable products where some variations have stock and others don’t, and the “hide out of stock products from the catalog” option is set. What happens is that when an attribute is selected for filtering, all variable products having a variation that corresponds to that attribute will be displayed, even those not having stock for that variation (as long as at least one variation has stock).

Merchants who have experienced this have become frustrated because customers end up having to search through all the items to see if their selected variation is available. Sometimes they abandon the process after the first few items don’t have the one they are looking for.

The new lookup table in WooCommerce 6.3 solves this problem in a way that should improve performance – by creating a table row for each combination of product and attribute, including individual variations and stock status. This will be immensely helpful for any store owner who sells variable products, such as clothes, shoes, jewelry, etc.

This update will require a database migration. It will also introduce a new “Advanced” section under the Product Settings tab with options for the new product attributes lookup table.

New Advanced settings: WooCommerce – Settings – Products – Advanced

WooCommerce 6.3 has updated to the 6.9.0 version of the WooCommerce Blocks feature plugin and version 3.2.0-rc of WooCommerce Admin.

Shop owners who have variable products may want to give the update a test run during the next 12 days before the release lands. It is available for download from WordPress.org or via the WooCommerce Beta Tester plugin.

Recreating Onia: Building Brushstroke Backgrounds With WordPress Blocks

As I was looking over the latest releases from the WordPress theme directory this week, I came across one that caught my eye. Onia was clean and minimal while reserving its flourishes to bring attention to just a few elements across the page.

Could this be one of those diamonds in the rough I am always looking for in the free theme directory?

It had the potential, but it fell short. As I explored the theme, it felt like the author had spent 90% of their time designing an eye-catching front page. Diving into inner pages showed no attention to typography as the character count per line was pushing 150 and beyond, more than twice what it should be for comfortable reading.

That is the sort of thing that is easy to address. I was more disappointed that Onia was not a block theme. All the elements were there. It did not do anything particularly complex, and there was no evident reason for it to be a classic theme.

Yesterday evening, I sat down and recreated Onia as a block theme. Technically, I built its homepage directly from the editor on top of a base theme project I already had on hand. There were a couple of challenges, but I did the bulk of the work in roughly an hour. The other pieces took a little longer as I ran through possible solutions.

The following is a comparison of the two front pages (Onia is first, followed by my recreation):

I obviously took a few liberties with spacing, sizing, and coloring. I was not attempting an exact replica. Instead, it was a bit of a reboot with a few spins on the original.

Some Quick Notes

One of the things that often frustrates me with themes is that they show off these beautiful logos in the demo but offer no way for the user to work with the same font. I was unsure of what the original font family was used in the logo, but I added Sacramento as a cursive handwriting option:

Site header with a cursive site title, followed by a horizontal navigation menu.
Pretty font that users can customize.

These features can make a difference for the average user. Not everyone can load up Photoshop and create their own specialized logo. However, they can type their site’s name and select a font option for the plain text version.

Technically, there are two features currently in Gutenberg but not in WordPress 5.9 that I used. The first is the Read More block. Onia had this in its post grid. As a theme author, I would have simply waited for this feature if it was a holdup. Considering that both the featured image and post title link to the single post page, it was not a make-or-break element.

The second missing feature is the “show labels” option for the Social Icons block. A workaround for the original design would have been to use a Navigation block instead since the links were just plain text. Another option would have been a custom block style for Social Icons. Either way, this was not a blocker for this theme being released as a block theme.

Every other design element of the theme is possible through the block system.

Brushstroke Block Style

I said there were challenges, but I use that term to mean “the fun stuff.” These are the pieces where designers and developers can dive into a problem and attempt to innovate, and they are the solutions that I want to share.

One of my favorite design elements of the theme was its use of an SVG to create a brushstroke behind the intro heading:

Two columns: text + image.  On the left, the heading in the text has a gray brush stroke behind it.
Onia homepage intro.

The theme used an old-school method of wrapping a <span> element inside an <h1>. This applies the brush background to the last few words of the text. However, that implementation is problematic with smaller devices, not keeping up with the natural flow of text-breaks as the screen changes. There was also no way for users to control the color of the brushstroke or text.

I wanted to know if there was a better way of doing this while offering ultimate flexibility to users.

Fortunately, WordPress News recently relaunched with a brand-new design that leaned heavily on brushstrokes. Plus, the theme is licensed under the GPL, so its assets are freely available.

Honestly, I wish I had looked at its source code before reading over various CSS help and support sites. Our community’s designers had already solved the problems I was hitting. All I had to do was adjust their solutions to fit my needs.

After a bit of wrangling, I managed to create a customizable brushstroke background for Headings:

Users can adjust the text color as always. However, modifying the background color changes the brushstroke color. The stroke always aligns with the last line of text, so it will work regardless of the screen size. That may not always be desirable. However, other solutions exist for use cases like highlighting specific text.

The following screenshot is an editor view as I change the color:

Editor view that shows a media and text block.  The Heading on the left is selected and has a brushstroke background.  On the right, the background color tool is open.
Customizing the brushstroke background color.

To create the brushstroke background for Heading blocks, I added the following code to my theme’s functions.php file:

add_action( 'init', 'tavern_register_block_styles' );

function tavern_register_block_styles() {
        register_block_style( 'core/heading', [
            'name' => 'brush',
            'label' => __( 'Brush', 'tavern' )
        ] );
}

Then, I downloaded the brush-stroke-big.svg file from the WordPress News repo and added it to an /assets/svg folder in my theme.

The final step was adding custom CSS to my theme’s stylesheet. I covered adding styles in more depth in my previous Building with Blocks tutorial for those who need a refresher.

/* Cancel out WP's padding on headings with backgrounds. */
:is( h1, h2, h3, h4, h5, h6 ).is-style-brush.has-background {
    padding: 0;
}

/* Add default background to headings. Clip it to the text. */
:where( h1, h2, h3, h4, h5, h6 ).is-style-brush {
    position: relative;
    z-index: 1;
    background-color: #b5b5b5;
    background-clip: text !important;
    -webkit-background-clip: text !important;
}

/* Adds the brushstroke to ::before. Using ::after can conflict with editor. */
:where( h1, h2, h3, h4, h5, h6 ).is-style-brush::before {
    content: "";
    position: absolute;
    z-index: -1;
    bottom: -1rem;
    left: -1rem;
    height: calc( 1.25em + 1rem );
    width: 100%;
    background-color: inherit;
    -webkit-mask-image: url('assets/svg/brush-stroke-big.svg');
    mask-image: url('assets/svg/brush-stroke-big.svg');
    -webkit-mask-position: left bottom;
    mask-position: left bottom;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

Most of those rules can be adjusted on a case-by-case basis. Some may need a bit of fudging, depending on the theme.

This solution could work for other blocks. I encourage theme authors to experiment and use other SVGs to see what they come up with.

Note: the Onia theme links to a CDN for its SVG background image, which is not supposed to be allowed on WordPress.org. I also could not find any licensing info on it. Being unsure if it was compatible with the GPL, I did not use the asset from the theme.

33 Unique And Creative Free Fonts

When you create a design project, typography is one of the first things that you take into consideration. Sometimes amazing illustrations or professional photo manipulations can’t deliver a proper message to the audience, whereas simple text can do a great job even without tricks. That is why, generally, well thought typography is an essential part...

The post 33 Unique And Creative Free Fonts appeared first on DesignrFix.

Distributed Tracing System (Spring Cloud Sleuth + OpenZipkin)

When we build a microservice architecture and the number of services keeps growing, we face the problem of debugging and tracing requests through our entire system. What happened when a user got a 500 error on his request? What service incorrectly processed his request? All these questions can be solved by the Distributed Tracing System. Let's take Spring Cloud Sleuth as an example.

How Spring Cloud Sleuth Works

To trace a request through a distributed system, the concepts TraceID and SpanID are introduced. TraceID is generated when a request enters our system and remains unchanged throughout its path. SpanID changes as the request passes from one service to another. If necessary, it is possible to generate new spans within one service to distinguish business processes.

Pulsar on KubeSphere: Installing Distributed Messaging and Streaming Platform

KubeSphere, an open-source container platform running on Kubernetes, provides users with an app-centric experience. In this connection, it features a comprehensive set of tools for developers to manage apps across their entire lifecycle. In this article, I will demonstrate how to install Apache Pulsar on a KubeSphere cluster as an example. Apache Pulsar, a cloud-native, distributed messaging and streaming tool, represents a go-to platform to meet the real-time event-streaming needs of enterprises.

Before You Begin

To install Pulsar on KubeSphere, you need to do the following beforehand:

The Basics of Screen Design

Let’s go back to basics of screen design for this article and explore what makes good screen design. It’s an important question as screen design incorporates everything from the text, to the images, to the layout, to the font you use, to how all those elements hang together as a whole.It’s that last point that’s...

The post The Basics of Screen Design appeared first on DesignrFix.

Log4Shell: A Case for Trusting Open Source – With Guardrails

Along with a host of frenzied updates and patches, Log4Shell brought something else to the table: an intense renewed scrutiny among business leaders and governments around “open source.” What most of these critics are not aware of is that much of the software powering their success isn’t created by commercial vendors, but is created by volunteers and that some of their most critical systems use open-source software. Furthermore, most critics can’t confidently point to a list of all the open-source software powering their own success. 

Similar to the response we’ve seen to major incidents like HeartBleed, Dirty Cow, and the Equifax experience with Apache Struts, governmental reviews are underway, and some are seeking to replace the “bad open-source component” – in this case, log4j – with a “more secure alternative.” But there is an important aspect of open source in modern society that is being overlooked in these scenarios – it’s highly trusted.

My white whale: A use case for will-change

 Nic Chan:

[…] the will-change property landed in major browsers in August 2015, and I’ve been on the lookout for when to use it ever since. It might seem self-evident to apply it to commonly animated properties such as transform or opacity, but the browser already classifies them as composite properties, thus, they are known as the few properties that you can already expect decent animation performance from. So, heeding the advice of the great developers who came before me, I was cautious and waited for the right opportunity to come along.

I was thinking-out-loud about this as well on ShopTalk not too long ago. I get the spirit behind will-change. It’s like responsive images or DNS prefetching: you give the browser extra information about what you’re about to do, and it can optimize it when it happens. But with will-changewhen? Why isn’t there a simple reduced test case demo to showcase something with bad performance, then will-change being applied, and it becomes good performance?

Well Nic found one little directly useful case where a hover-transformed pseudo-element leaves a little dingus of color behind in Safari, and that goes away if you use will-change. I tested it in the latest versions of Safari and found it to be true. Alrighty then, one use case!

I’d love to see a more obvious direct use case. I imagine the sweet spot is on lower-power devices (that still have GPUs) but are new enough to know what will-change is.

To Shared LinkPermalink on CSS-Tricks


My white whale: A use case for will-change originally published on CSS-Tricks. You should get the newsletter.