I deployed my Laravel app to Google App Engine (Standard environment). Someone just copied my project 3 times and didn't change root links on images and because of it I have 100+ backlinks and clones loading images from my website. Is there any way to disavow backlinks in app.yaml file?
This is how I can deny access to websites in .htaccess
SetEnvIfNoCase Referer "clone1.com" bad_referer
SetEnvIfNoCase Referer "clone2.com" bad_referer
Order Allow,Deny
Allow from ALL
Deny from env=bad_referer
My current app.yaml file
runtime: php73
handlers:
- url: /(.*\.(gif|png|jpg|css|js|txt|svg|xml|ico|woff|woff2))$
static_files: public/\1
upload: public/.*\.(gif|png|jpg|css|js|txt|svg|xml|ico|woff|woff2)$
- url: /.*
secure: always
redirect_http_response_code: 301
script: auto
env_variables:
## Put production environment variables here.
APP_KEY: *KEY*
APP_STORAGE: /tmp
VIEW_COMPILED_PATH: /tmp
SESSION_DRIVER: cookie
My Answer:
"^https://example.com" bad_referer
Order Allow,Deny
Allow from all
Deny from env=bad_referer
Unfortunately, you cannot disavow backlinks directly in the app.yaml file. However, you can use the above code in your .htaccess file to deny access to websites that are copying your content and creating backlinks without your permission. This will prevent them from hotlinking images from your website.
Rate this post
5 of 5 based on 2697 votesComments