Remove License Check from Script Code in Codeigniter

Remove a line of code before view in CodeIgniter

This is what you have done in the end part..

<!--[if lt IE 9]>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/respond.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/html5shiv.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/js/plugins/placeholder-IE-fixes.js"></script>
<![endif]-->

<!---

<script>$(function(){$.getScript("https://activeitzone.com/check/shop.js");});</script>

Change this to

<!--[if lt IE 9]
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/respond.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/plugins/html5shiv.js"></script>
<script src="http://phpstack-31179-70602-209023.cloudwaysapps.com/template/front/assets/js/plugins/placeholder-IE-fixes.js"></script>-->
<!--[endif]-->



<!--<script>$(function(){$.getScript("https://activeitzone.com/check/shop.js");});</script>-->

license key for php script

There's a reason Adobe, Microsoft, and others don't over actively pursue pirates (not saying they don't, just not at epic, absolutism levels) - they make most of their money from business to business sales and support. A simple license and support structure is typically enough to posture yourself for profit from legitimate businesses and parties who want your product.

Technical protection is a losing battle if you're going to give anyone the code. That's why SaaS is so popular.

codeigniter remove index.php form url

Write this code in your .htaccess file

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /folder/index.php [L]
</IfModule>

# END WordPress

Example : example.com/folder/index.php/contorller

after above code no need to write index.php

it's working..

Is there a way to protect a php script from being used without a valid license?

No, I do not think this is actually possible. If you can't encrypt it, then there is no way to prevent someone from just removing that portion of your script. You could try to make it a pain in the butt to remove. But no matter how hard to you make it, a determined coder could always remove the license check while leaving the primary script intact.

Codeigniter 3 - how to remove the function name from URL

I think you have error in your .htaccess file. Please find below code for .htaccess file.

You can use RewriteBase to provide a base for your rewrites.

RewriteEngine On
RewriteBase /campnew/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]

In Controller your method.

public function index($category_name = null) {
$this->load->model('category_model');

$data = array();

if ($query = $this->category_model->get_records_view($category_name)) {
$data['recordss'] = $query;
}
if ($query2 = $this->category_model->get_records_view2($category_name))
{
$data['recordsc2'] = $query2;
}

$data['main_content'] = 'category';
$this->load->view('includes/template', $data);
}

In Model File

public function get_records_view($category){
$this->db->where('a.linkname', $category);
}

Let me know if it not works.



Related Topics



Leave a reply



Submit